Пример #1
0
 protected void SubscribeFixedUpdate()
 {
     if (fixedUpdateNode == null)
     {
         fixedUpdateNode = UpdateSystem.Instance.SubscribeFixedUpdate(this);
     }
 }
Пример #2
0
 protected void SubscribeLateUpdate()
 {
     if (lateUpdateNode == null)
     {
         lateUpdateNode = UpdateSystem.Instance.SubscribeLateUpdate(this);
     }
 }
Пример #3
0
 protected void SubscribeThreadedUpdate()
 {
     if (threadedUpdateNode == null)
     {
         threadedUpdateNode = ThreadedUpdateSystem.Instance.Subscribe(this);
     }
 }
Пример #4
0
 protected void SubscribePreUpdate()
 {
     if (preUpdateNode == null)
     {
         preUpdateNode = UpdateSystem.Instance.SubscribePreUpdate(this);
     }
 }
Пример #5
0
 protected void UnsubscribeFixedUpdate()
 {
     if (fixedUpdateNode != null && GameRunning)
     {
         UpdateSystem.Instance.UnsubscribeFixedUpdate(fixedUpdateNode);
     }
     fixedUpdateNode = null;
 }
Пример #6
0
 protected void UnsubscribeLateUpdate()
 {
     if (lateUpdateNode != null && GameRunning)
     {
         UpdateSystem.Instance.UnsubscribeLateUpdate(lateUpdateNode);
     }
     lateUpdateNode = null;
 }
Пример #7
0
 protected void UnsubscribeThreadedUpdate()
 {
     if (threadedUpdateNode != null && GameRunning)
     {
         ThreadedUpdateSystem.Instance.Unsubscribe(threadedUpdateNode);
     }
     threadedUpdateNode = null;
 }
Пример #8
0
 protected void UnsubscribeUpdate()
 {
     if (updateNode != null && GameRunning)
     {
         UpdateSystem.Instance?.UnsubscribeUpdate(updateNode);
     }
     updateNode = null;
 }
 public void Unsubscribe(EiLLNode <IThreadedUpdate> node)
 {
     if (node.List != null)
     {
         node.List.Remove(node);
     }
     else
     {
         UnityEngine.Debug.LogError("Cant remove node from system");
     }
 }
 public void SetNode(EiLLNode <ThreadContainer> node)
 {
     this.node = node;
 }
 public void Unsubscribe(EiLLNode <IThreadedUpdate> node)
 {
     components.Remove(node);
 }
Пример #12
0
 public static void Unsubscribe <T>(EiLLNode <MessageSubscriber <T> > subscriber)
 {
     Message.Unsubscribe <T>(subscriber);
 }
Пример #13
0
 protected void UnsubscribeUpdateTimer(EiLLNode <UpdateSystem.TimerUpdateData> node)
 {
     UpdateSystem.Instance.UnsubscribeTimerUpdate(node);
 }