internal static void Actualize(AtomBase atom) { _dirty = true; _updatingNextFrame.Enqueue(atom); if (ReferenceEquals(_current, null) && Application.isPlaying) { var go = new GameObject(nameof(AtomScheduler)); _current = go.AddComponent <AtomScheduler>(); DontDestroyOnLoad(_current); } }
public static void OnInactivate(AtomBase atom) { Active.Remove(atom); OnBecameInactive(atom); }
public static void OnActivate(AtomBase atom) { Active.Add(atom); OnBecameActive(atom); }