Exemple #1
0
 override public PrefromResult Perform(float delta)
 {
     LivesModel.Instance().DecLives();
     AnalyticsWrapper.ReportReturnToMenu(DifficultyModel.Instance().number, GameModel.Instance());
     SceneManager.LoadScene("MenuScene");
     return(PrefromResult.COMPLETED);
 }
Exemple #2
0
        override public PrefromResult Perform(float delta)
        {
            var game = GameModel.Instance();

            if (game.GetIsLost())
            {
                if (game.maxScore > PlayerPrefs.GetInt("highscore", 0))
                {
                    PlayerPrefs.SetInt("highscore", game.maxScore);
                }

                AnalyticsWrapper.ReportGameLost(DifficultyModel.Instance().number, game);
                LivesModel.Instance().DecLives();
                SceneManager.LoadScene("MenuScene");
            }

            return(PrefromResult.PROCEED);
        }
Exemple #3
0
 protected void Update()
 {
     SetLives(LivesModel.Instance().GetLives());
 }
Exemple #4
0
 protected void Update()
 {
     SetTime(LivesModel.Instance().NextLifeIn());
 }