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; } }
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; } }
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; } } }