Example #1
0
        public bool Update()
        {
#if UNITY_DOTSPLAYER
            UnsafeUtility.FreeTempMemory();
#endif

            var shouldContinue = true;


            if (m_BootPhase == BootPhase.Running)
            {
                m_World.Update();
                shouldContinue = !m_World.QuitUpdate;
            }
            else
            {
                if (m_BootPhase == BootPhase.Booting)
                {
                    UpdateBooting();
                }
                else if (m_BootPhase == BootPhase.LoadingConfig)
                {
                    UpdateLoadingConfig();
                }
                else
                {
                    throw new Exception("Invalid BootPhase specified");
                }
            }

            return(shouldContinue);
        }