Exemplo n.º 1
0
    void Awake()
    {
        lights = GameObject.FindGameObjectsWithTag("Light");

        MakeParents();
        GetSpawnDimensions();
        SetSpawnPoints();

        timerState = TimerOn.timerDeactivated;
    }
Exemplo n.º 2
0
    public void DeactivateCurrentlyActiveTimer()
    {
        //Disable the level's active alarm, resetting the relevant timer and lighting color values and disabling/hiding the Timer Bar
        timerState = TimerOn.timerDeactivated;

        timerCurrentTime = timerMaxxTime;

        sceneLight.color = Color.white;

        timerBar.fillAmount = timerCurrentTime / timerMaxxTime;
        timerBar.gameObject.SetActive(false);
    }