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); } }
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); } }
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); }