private void SetReferences() { music = GameObject.FindGameObjectWithTag(musicObjectTag).GetComponent <MusicManager>(); audioSource = GetComponent <AudioSource>(); PauseAudioSettings pauseAudio = new PauseAudioSettings(audioSource, music, sound); pause = new PauseStateManager(pauseMenu, weaponMenu, pauseAudio); }
public PauseMenuState(PauseStateManager pauseStateManager) { this.pauseStateManager = pauseStateManager; }
public UnpausedState(PauseStateManager pauseStateManager) { this.pauseStateManager = pauseStateManager; }
public WeaponMenuState(PauseStateManager pauseStateManager) { this.pauseStateManager = pauseStateManager; }