public static void decreaseScore(ref Player player,int score) { player.score -= score; if (player.score>0) return; player.life--; player.score += LIFE_SCORE; }
public void increaseScore(ref Player player, int score) { player.score += score; }
public static bool isEndGame(Player player) { if (player.life > 0 ) return false; if (player.score > 0 ) return false; return true; }