private void OnOverGame() { isGameStarted = false; coinToRespawn = 10; int currentBestScore = SqliteUserManager.getBestScore(); if (currentBestScore <= score) { SqliteUserManager.setBestScore(score); } SqliteUserManager.AddCoin(score); }
private bool OnRespawn() { if (SqliteUserManager.getCoin() > coinToRespawn) { SqliteUserManager.AddCoin(-coinToRespawn); coinToRespawn += 10; return(true); } else { return(false); } }
public void OnGameOver() { SqliteUserManager.AddCoin(coin); }
private bool checkIsBought(int id) { return(SqliteUserManager.getCharacter().Exists(x => x == id)); }