Esempio n. 1
0
 private void InkyUpdate()
 {
     if (inky.state == GhostState.Dead)
     {
         inky.speed = baseGhostSpeed * 2;
         if (Vector3.Distance(inky.transform.position, inkyResetPos) < targetDistanceThresshold)
         {
             inky.Resurrect();
         }
     }
     else
     {
         inky.speed = baseGhostSpeed;
     }
 }
Esempio n. 2
0
 private void ClydeUpdate()
 {
     if (clyde.state == GhostState.Dead)
     {
         clyde.speed = baseGhostSpeed * 2;
         if (Vector3.Distance(clyde.transform.position, clydeResetPos) < targetDistanceThresshold)
         {
             clyde.Resurrect();
         }
     }
     else
     {
         clyde.speed = baseGhostSpeed;
     }
 }
Esempio n. 3
0
 private void BlinkyUpdate()
 {
     if (blinky.state == GhostState.Dead)
     {
         blinky.speed = baseGhostSpeed * 2;
         if (Vector3.Distance(blinky.transform.position, blinkyResetPos) < targetDistanceThresshold)
         {
             blinky.Resurrect();
         }
     }
     else
     {
         blinky.speed = baseGhostSpeed;
         if (pelletsLeft < aggressivePelletsFaster)
         {
             blinky.speed = aggressiveSpeedFaster;
         }
         else if (pelletsLeft < aggressivePellets)
         {
             blinky.speed = aggressiveSpeed;
         }
     }
 }