Esempio n. 1
0
    //called when player hits the lever
    //checks to see if all levers are hit
    public void StartRotation()
    {
        _activated = true;

        _myRoom.CheckForEnd();

        _startRotate = Time.time;
    }
Esempio n. 2
0
    //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);
        }
    }
Esempio n. 3
0
 public void CorrectMatch()
 {
     gameObject.SetActive(false);
     _spawner.CheckForEnd();
 }