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

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