void Update() { if (!PigsMoving()) { if (birdCrashed) { if (birdIndex == Birds.Length - birdLimit) { gameOver = true; } if (gameOver) { gaManager.Evaluate(heuristic.Score, heuristic.solutionFound); } else { birdCrashed = false; LoadBird(); } } } }
void Update() { if (!PigsMoving()) { if (birdCrashed) { if (birdIndex == Birds.Length - birdLimit) { gameOver = true; } if (gameOver) { gaManager.Evaluate(heuristic.Score, heuristic.solutionFound); } else { birdCrashed = false; LoadBird(); } } } }