Example #1
0
 public void CollectStar()
 {
     GameState.starsBalance++;
     DataStorageUtils.SaveStarCounter(GameState.starsBalance);
     UpdateGameStars();
 }
Example #2
0
 public void CollectCarrot()
 {
     GameState.carrotBalance++;
     DataStorageUtils.SaveCarrotCounter(GameState.carrotBalance);
     UpdateGameCarrots();
 }
Example #3
0
 void Start()
 {
     GameState = DataStorageUtils.GetSavedGameState();
     StartCoroutine(StarSpawningCoroutine());
     UpdateGameUI();
 }