/// <summary> /// Cause this Ghost to respawn. /// </summary> void GhostRespawn() // This is called in the 'Ghost Dead State' animation as an event at the end of the animation. { CancelInvoke(); // Stop all invoke methods. //transform.localPosition = new Vector3(1f, 1f, -.05f); // Do not use for Assignment 3. GhostController GC = GetComponent <GhostController>(); GC.ResetLBM(); // If this Ghost is the Light Blue Ghost, reset the strict clockwise movement. GC.ResetPositions(); // Reset the positions of the Ghosts to their spawn point. ResetState(); // Reset this Ghost's state. }