void OnDisable() { if (Current == this) { Current = null; } }
void Initialize() { if (!Application.isPlaying) { return; } initialized = true; //var g = new GameObject("Loom"); Current = this; _actions = new List <Action>(); _delayed = new List <DelayedQueueItem>(); _currentDelayed = new List <DelayedQueueItem>(); _currentActions = new List <Action>(); // PEIKDE.Log("Loom", "Init Complate"); }