public void voiceChatBtnClicked(NetworkRoomPlayerWBTB Player) { //Debug.Log("voiceChatBtnClicked"); // local input device를 unmute시킴 //Player.isMuted = !Player.isMuted; _voiceManager.AudioInputDevices.Muted = !_voiceManager.AudioInputDevices.Muted; voiceOnOffClicked = !voiceOnOffClicked; if (voiceOnOffClicked) { voiceOnOffImg.sprite = voiceOnImg; } else { voiceOnOffImg.sprite = voiceOffImg; } }
void Awake() { GM = GameObject.Find("GameManager").GetComponent <GameManager>(); _voiceManager = VoiceManager.Instance; Population = 100; PopulationText = GameObject.Find("PopulationText").GetComponent <Text>(); UpdatePopulationTextUI(); //int i = 0; foreach (var p in GameObject.FindGameObjectsWithTag("PlayerList")) { if (p.GetComponent <NetworkRoomPlayerWBTB>().index == index) { _roomPlayer = p.GetComponent <NetworkRoomPlayerWBTB>(); participant = _roomPlayer.participant; setupParticipant(participant); break; } } //CmdSyncIndex(); }
public void voiceChatBtnClicked(NetworkRoomPlayerWBTB Player) { //Debug.Log("voiceChatBtnClicked"); // local input device를 unmute시킴 Player.isMuted = !Player.isMuted; }