public static void Unsubscribe(ManagedBehaviour_Update behaviour) { for (int i = 0; i < updates.Length; i++) { if (updates[i] == behaviour) { updates[i] = null; return; } } }
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."); }