Exemplo n.º 1
0
        public override void Process(NetMessage msg)
        {
            UIManager.Instance.spawnBanner.Show(msg.Name, msg.TextColor, msg.BackgroundColor);

            if (msg.PlaySound)
            {
                // make sure that all sound is disabled
                SoundAmbientManager.StopAllAudio();
                //play the spawn sound
                SoundAmbientManager.PlayAudio(msg.SpawnSound);
            }
        }
Exemplo n.º 2
0
        public override void Process()
        {
            UIManager.Instance.antagBanner.Show(AntagName, TextColor, BackgroundColor);

            if (PlaySound)
            {
                // make sure that all sound is disabled
                SoundAmbientManager.StopAllAudio();
                //play the spawn sound
                SoundAmbientManager.PlayAudio(AntagSound);
            }
        }
Exemplo n.º 3
0
 public void SetScreenForLobby()
 {
     SoundAmbientManager.StopAllAudio();
     MusicManager.SongTracker.StartPlayingRandomPlaylist();
     ResetUI();         //Make sure UI is back to default for next play
     UIManager.PlayerHealthUI.gameObject.SetActive(false);
     UIActionManager.Instance.OnRoundEnd();
     hudBottomHuman.SetActive(false);
     hudBottomGhost.SetActive(false);
     panelRight.gameObject.SetActive(false);
     rightClickManager.SetActive(false);
     jobSelectWindow.SetActive(false);
     teamSelectionWindow.SetActive(false);
     preRoundWindow.gameObject.SetActive(false);
     disclaimer.SetActive(true);
     UIManager.Instance.adminChatButtons.transform.parent.gameObject.SetActive(false);
 }