Пример #1
0
 public static void decreaseScore(ref Player player,int score)
 {
     player.score -= score;
     if (player.score>0) return;
     player.life--;
     player.score += LIFE_SCORE;
 }
Пример #2
0
 public void increaseScore(ref Player player, int score)
 {
     player.score += score;
 }
Пример #3
0
 public static bool isEndGame(Player player)
 {
     if (player.life > 0 ) return false;
     if (player.score > 0 ) return false;
     return true;
 }