Beispiel #1
0
        public void OnDestroy()
        {
            Minigame active = MinigameManager.GetActive();

            if (active != null && m_registered)
            {
                active.UnregisterSFX(this);
            }
        }
Beispiel #2
0
        private void Start()
        {
            Minigame active = MinigameManager.GetActive();

            if (active != null)
            {
                active.RegisterMusic(MusicTrack);
            }
        }
Beispiel #3
0
        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();
 }