Beispiel #1
0
    public void DarkAndSpawn()
    {
        _darkSpawn = 2;
        _shadowSource.UpdateScaleRange(40);
        BattleMode = true;

        ProgressBar.SetActive(false);
        WinText.gameObject.SetActive(true);


        Camera.main.GetComponent <AudioSource>().Stop();
        AudioSource.PlayClipAtPoint(BeatGame, transform.position);
        ClearLevel();
    }
Beispiel #2
0
    public void UpdateLightSource(int orbs)
    {
        var newRadius = _startRadius + orbs / 25f;

        _lightScaler.UpdateScaleRange(newRadius);
    }