예제 #1
0
 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();
             }
         }
     }
 }