Ejemplo n.º 1
0
        protected virtual void OnDisable()
        {
            if (hasUpdates)
            {
                UnityAsyncManager.UnregisterUpdate(this);
            }

            if (hasLateUpdates)
            {
                UnityAsyncManager.UnregisterLateUpdate(this);
            }

            if (hasFixedUpdates)
            {
                UnityAsyncManager.UnregisterFixedUpdate(this);
            }
        }