private void TryToNextLevel(MessageGameScreen background)
 {
     if (PZLevelManager.Instance.IsLevelAvailable)
     {
         this.Manager.AddExclusive(this.Manager.Bank.GetNewScreen("PlayScreen"));
     }
     else
     {
         PZLevelManager.Instance.ResetGame();
         this.Manager.AddExclusive(this.Manager.Bank.GetScreen("MainMenu"));
     }
 }
 private void OnGameLost(MessageGameScreen background)
 {
     this.Manager.AddExclusive(this.Manager.Bank.GetScreen("MainMenu"));
 }
        void winScreen_OnScreenCompleted(MessageGameScreen background)
        {
            //PlayScreen
            if (m_level + 1 == PZLevelManager.Instance.GetLevels().Count)
            {
                this.Manager.AddExclusive(this.Manager.Bank.GetNewScreen("MainMenu"));
                return;
            }

            IGameScreen gamePlay = this.Manager.Bank.GetNewScreen("PlayScreen");
            (gamePlay as GamePlayScreen).ResetGame(m_level + 1);
            level.LevelState = LevelState.BEGIN;
            this.Manager.AddExclusive(gamePlay);
        }
        public IGameScreen CreateGameScreen()
        {
            var msg = new MessageGameScreen(screenMan, screenName);
            msg.Background = SCSServices.Instance.ResourceManager.GetResource<Texture2D>(this.backgroundName);
            msg.Initialize();

            return msg;
        }
 void loseScreen_OnScreenCompleted(MessageGameScreen background)
 {
     //
     this.Manager.AddExclusive(this.Manager.Bank.GetNewScreen("MainMenu"));
 }