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(); }
public void UpdateLightSource(int orbs) { var newRadius = _startRadius + orbs / 25f; _lightScaler.UpdateScaleRange(newRadius); }