//called when player hits the lever //checks to see if all levers are hit public void StartRotation() { _activated = true; _myRoom.CheckForEnd(); _startRotate = Time.time; }
//called while the ghost is dying; protected virtual void Die() { _currTime = (Time.time - _startTime) / _deathTimer; if (_currTime >= 1) { _mySpawner.RemoveMe(this); _mySpawner.CheckForEnd(); Destroy(gameObject); } }
public void CorrectMatch() { gameObject.SetActive(false); _spawner.CheckForEnd(); }