override public PrefromResult Perform(float delta) { LivesModel.Instance().DecLives(); AnalyticsWrapper.ReportReturnToMenu(DifficultyModel.Instance().number, GameModel.Instance()); SceneManager.LoadScene("MenuScene"); return(PrefromResult.COMPLETED); }
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); }
protected void Update() { SetLives(LivesModel.Instance().GetLives()); }
protected void Update() { SetTime(LivesModel.Instance().NextLifeIn()); }