Example #1
0
 public static void Unsubscribe(ManagedBehaviour_LateUpdate behaviour)
 {
     for (int i = 0; i < lateUpdates.Length; i++)
     {
         if (lateUpdates[i] == behaviour)
         {
             lateUpdates[i] = null;
             return;
         }
     }
 }
Example #2
0
    public static void Subscribe(ManagedBehaviour_LateUpdate behaviour)
    {
        for (int i = 0; i < lateUpdates.Length; i++)
        {
            if (lateUpdates[i] == null)
            {
                lateUpdates[i] = behaviour;
                return;
            }
        }

        Debug.Log("ManagedUpdate: LateUpdate buffer capacity exceeded.");
    }