Пример #1
0
 public bool CheckWinConditionLevel4(PlayerControlScript player)
 {
     if (player.CheckVictory() && player.AsteroidCount(Asteroid.TYPE.GOLD) < 2)
     {
         FailedLevel();
     }
     return(player.AsteroidCount(Asteroid.TYPE.GOLD) >= 2 && player.CheckVictory());
 }
Пример #2
0
 public bool CheckWinConditionLevel2(PlayerControlScript player)
 {
     if (player.CheckVictory() && player.AsteroidCount() < 10)
     {
         FailedLevel();
     }
     return(player.AsteroidCount() >= 5 && player.CheckVictory());
 }
Пример #3
0
 public bool CheckWinConditionLevel3(PlayerControlScript player)
 {
     if (player.CheckVictory() && player.AsteroidCount(Asteroid.TYPE.IRON) < 5)
     {
         FailedLevel();
     }
     return(player.AsteroidCount(Asteroid.TYPE.IRON) >= 5 && player.CheckVictory());
 }
Пример #4
0
 public bool CheckWinConditionLevel7(PlayerControlScript player)
 {
     if (player.CheckVictory() && (player.AsteroidCount(Asteroid.TYPE.ICE) < 4 ||
                                   player.AsteroidCount(Asteroid.TYPE.IRON) < 4 ||
                                   player.AsteroidCount(Asteroid.TYPE.GOLD) < 4))
     {
         FailedLevel();
     }
     return(player.AsteroidCount(Asteroid.TYPE.ICE) >= 4 &&
            player.AsteroidCount(Asteroid.TYPE.IRON) >= 4 &&
            player.AsteroidCount(Asteroid.TYPE.GOLD) >= 4 &&
            player.CheckVictory());
 }