Пример #1
0
        public void OnDestroy()
        {
            Minigame active = MinigameManager.GetActive();

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

            if (active != null)
            {
                active.RegisterMusic(MusicTrack);
            }
        }
Пример #3
0
        private void RegisterSFXWithManager()
        {
            Minigame active = MinigameManager.GetActive();

            if (AudioTrack != null && active != null)
            {
                active.RegisterSFX(this);
                m_registered = true;
                Stop();
            }
        }
Пример #4
0
 protected virtual void OnCloseClicked()
 {
     MinigameManager.GetActive().PauseGame();
 }