protected virtual void OnDisable() { if (hasUpdates) { UnityAsyncManager.UnregisterUpdate(this); } if (hasLateUpdates) { UnityAsyncManager.UnregisterLateUpdate(this); } if (hasFixedUpdates) { UnityAsyncManager.UnregisterFixedUpdate(this); } }