Example #1
0
        public override void Entering()
        {
            // Make sure all of the game settings are inline
            Lives.ResetLives();
            Score.ResetPlayerScores();
            Level.Reset();


            // update
            SpriteNodeBatchManager.SetActive(this.poSpriteNodeBatchMan);
            GameObjectManager.SetActive(this.poGameObjectManager);
            InputManager.SetActive(this.poInputManager);


            // Update timer since last pause
            float t0    = GlobalTimer.GetTime();
            float t1    = this.TimeAtPause;
            float delta = t0 - t1;

            TimerManager.PauseUpdate(delta);
        }