Ejemplo n.º 1
0
        void RegisterFixedUpdates()
        {
            if (hasFixedUpdates)
            {
                return;
            }

            hasFixedUpdates = true;
            UnityAsyncManager.RegisterFixedUpdate(this);
        }
Ejemplo n.º 2
0
        protected virtual void OnDisable()
        {
            if (hasUpdates)
            {
                UnityAsyncManager.UnregisterUpdate(this);
            }

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

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