Esempio n. 1
0
 private void HandleDeadGhost()
 {
     if (HasArrived(pathFinder.GetTargetTile()))
     {
         // Blinky is the only ghost that never enters the house
         // TODO: the above statement is actually false; he enters too
         if (gameObject.name.Equals("Blinky"))
         {
             ghostState = ghostManager.GetCurrentGlobalState();
         }
         else
         {
             ghostState = GhostState.ENTER;
         }
     }
 }