Skip to content

Commit 25d1703

Browse files
committed
Fix Logic of mute player for all
1 parent 7fd3b5d commit 25d1703

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: Assets/Editor/MultiplayerManagerEditor.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading.Tasks;
66
using System.ComponentModel.Composition;
77
using System.Collections.Generic;
8+
using OpenBrush;
89

910
#if UNITY_EDITOR
1011
[CustomEditor(typeof(MultiplayerManager))]

Diff for: Assets/Scripts/Multiplayer/MultiplayerManager.cs

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ public void RoomOwnershipTransferToUser(int playerId)
321321
public void MutePlayerForAll(bool mute, int playerId)
322322
{
323323
if (!isUserRoomOwner) return;
324+
MultiplayerAudioSourcesManager.m_Instance.ToggleAudioMuteForPlayer(mute, playerId);
324325
m_Manager.RpcMutePlayer(mute, playerId);
325326
}
326327

0 commit comments

Comments
 (0)