Пример #1
0
        /* For cheating */
        public void ShowGameOver()
        {
            GameLost fake = new GameLost(12380);

            Instantiate(game_over_prefab)
            .GetComponentInChildren <Populator>()
            .Initialize(fake);
        }
Пример #2
0
 public void Initialize(GameLost results)
 {
     final_score = results.Score;
     score.text  = "0";
     StartCoroutine(CountScore());
     subscriptions.Add <HighScore.ReadReply>
     (
         rr =>
     {
         if (results.Score > rr.Best)
         {
             new_high_score.gameObject.SetActive(true);
         }
         subscriptions.Clear();
     }
     );
     Pool.Dispatch(new HighScore.Read());
     Pool.Dispatch(new UI.AddBackButtonHandler(gameObject, Restart));
 }