// Mutes player public void Mute(bool enabled) { if (!mutedYou) { muted = enabled; if (enabled) { RaiseEventOptions raised = new RaiseEventOptions(); raised.TargetActors = new int[] { id }; PhotonNetwork.networkingPeer.OpRaiseEvent((byte)173, new byte[] { (byte)254 }, true, new RaiseEventOptions { TargetActors = new int[] { id } }); MicEF.MuteList.Add(id); if (MicEF.AdjustableList.Contains(id)) { MicEF.AdjustableList.Remove(id); MicEF.RecompileSendList(); } } else if (MicEF.MuteList.Contains(id)) { MicEF.MuteList.Remove(id); PhotonNetwork.networkingPeer.OpRaiseEvent((byte)173, new byte[] { (byte)255 }, true, new RaiseEventOptions { TargetActors = new int[] { id } }); if (!MicEF.AdjustableList.Contains(id)) { MicEF.AdjustableList.Add(id); MicEF.RecompileSendList(); } } } }
// Mutes player public void mute(bool enabled) { if (!mutedYou) { muted = enabled; if (enabled) { RaiseEventOptions raised = new RaiseEventOptions(); raised.TargetActors = new int[] { playerID }; PhotonNetwork.networkingPeer.OpRaiseEvent((byte)173, new byte[] { (byte)254 }, true, raised); MicEF.muteList.Add(playerID); if (MicEF.adjustableList.Contains(playerID)) { MicEF.adjustableList.Remove(playerID); MicEF.recompileSendList(); } } else if (MicEF.muteList.Contains(playerID)) { MicEF.muteList.Remove(playerID); RaiseEventOptions raised = new RaiseEventOptions(); raised.TargetActors = new int[] { playerID }; PhotonNetwork.networkingPeer.OpRaiseEvent((byte)173, new byte[] { (byte)255 }, true, raised); if (!MicEF.adjustableList.Contains(playerID)) { MicEF.adjustableList.Add(playerID); MicEF.recompileSendList(); } } } }
// Mutes player public void Mute(bool enabled) { if (!MutedYou) { IsMuted = enabled; if (enabled) { PhotonNetwork.RaiseEvent((byte)173, new byte[] { (byte)254 }, true, new RaiseEventOptions { TargetActors = new int[] { Id } }); MicEF.MuteList.Add(Id); if (MicEF.AdjustableList.Contains(Id)) { MicEF.AdjustableList.Remove(Id); MicEF.RecompileSendList(); } } else if (MicEF.MuteList.Contains(Id)) { MicEF.MuteList.Remove(Id); PhotonNetwork.RaiseEvent((byte)173, new byte[] { (byte)255 }, true, new RaiseEventOptions { TargetActors = new int[] { Id } }); if (!MicEF.AdjustableList.Contains(Id)) { MicEF.AdjustableList.Add(Id); MicEF.RecompileSendList(); } } } }