Skip to content

Instantly share code, notes, and snippets.

View dezashibi's full-sized avatar
🎯
Focusing on my targets

Navid Dezashibi dezashibi

🎯
Focusing on my targets
View GitHub Profile
// Handle-based array. Used like this:
//
// EntityHandle :: distinct Handle
// entities: HandleArray(Entity, EntityHandle)
//
// It expects the type used (in this case Entity) to contains a field called handle
// of type Handle
//
// You can then fetch entities using ha_get() and add handles using ha_add()
/*
The purpose of this plugin is to disable certain procedures that are intended to be
developer-only secret code that you don't want to end up in the final release build
of your program.
To use this plugin, compile your program with `jai main.jai -plug Developer_Only`
and then mark certain procedures with the `@Developer` note. These procedures will
have their body deleted when in developer builds.
@dezashibi
dezashibi / CameraTargetSingleton.cs
Created March 13, 2025 05:18 — forked from JohnnyTurbo/CameraTargetSingleton.cs
Scripts from tutorial: Tutorial: SURVIVORS-LIKE w/ Unity DOTS & ECS - https://youtu.be/cc5l66FwpQ4
using UnityEngine;
namespace TMG.Survivors
{
public class CameraTargetSingleton : MonoBehaviour
{
public static CameraTargetSingleton Instance;
public void Awake()
{