public void OnDestroy() { Minigame active = MinigameManager.GetActive(); if (active != null && m_registered) { active.UnregisterSFX(this); } }
private void Start() { Minigame active = MinigameManager.GetActive(); if (active != null) { active.RegisterMusic(MusicTrack); } }
private void RegisterSFXWithManager() { Minigame active = MinigameManager.GetActive(); if (AudioTrack != null && active != null) { active.RegisterSFX(this); m_registered = true; Stop(); } }
protected virtual void OnCloseClicked() { MinigameManager.GetActive().PauseGame(); }