public bool CheckWinConditionLevel4(PlayerControlScript player) { if (player.CheckVictory() && player.AsteroidCount(Asteroid.TYPE.GOLD) < 2) { FailedLevel(); } return(player.AsteroidCount(Asteroid.TYPE.GOLD) >= 2 && player.CheckVictory()); }
public bool CheckWinConditionLevel2(PlayerControlScript player) { if (player.CheckVictory() && player.AsteroidCount() < 10) { FailedLevel(); } return(player.AsteroidCount() >= 5 && player.CheckVictory()); }
public bool CheckWinConditionLevel3(PlayerControlScript player) { if (player.CheckVictory() && player.AsteroidCount(Asteroid.TYPE.IRON) < 5) { FailedLevel(); } return(player.AsteroidCount(Asteroid.TYPE.IRON) >= 5 && player.CheckVictory()); }
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()); }