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