Example #1
0
        void RegisterUpdates()
        {
            if (hasUpdates)
            {
                return;
            }

            hasUpdates = true;
            UnityAsyncManager.RegisterUpdate(this);
        }
Example #2
0
        protected virtual void OnEnable()
        {
            if (hasUpdates)
            {
                UnityAsyncManager.RegisterUpdate(this);
            }

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

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