Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void CheckSubscribers()
 {
     if (subscribers != null)
     {
         for (var i = 0; i < subscribersCount; i++)
         {
             subscribers[i].Check();
         }
     }
     else if (options.Has(AtomOptions.AutoActualize))
     {
         AtomScheduler.Actualize(this);
     }
 }
Exemplo n.º 3
0
 protected void ObsoleteSubscribers()
 {
     if (subscribers != null)
     {
         for (var i = 0; i < subscribersCount; i++)
         {
             subscribers[i].Obsolete();
         }
     }
     else if (options.Has(AtomOptions.AutoActualize))
     {
         AtomScheduler.Actualize(this);
     }
 }