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);
            }
        }
Example #2
0
 public static void OnInactivate(AtomBase atom)
 {
     Active.Remove(atom);
     OnBecameInactive(atom);
 }
Example #3
0
 public static void OnActivate(AtomBase atom)
 {
     Active.Add(atom);
     OnBecameActive(atom);
 }