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

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

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

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