File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ public override void OnInspectorGUI()
143
143
if ( GUILayout . Button ( muteButtonLabel ) )
144
144
{
145
145
bool newMuteState = ! currentMuteState ;
146
- MultiplayerManager . m_Instance . MutePlayerForAll ( newMuteState , playerId ) ;
146
+ multiplayerManager . MutePlayerForAll ( newMuteState , playerId ) ;
147
147
muteStates [ playerId ] = newMuteState ;
148
148
EditorUtility . SetDirty ( target ) ;
149
149
}
@@ -154,11 +154,21 @@ public override void OnInspectorGUI()
154
154
if ( GUILayout . Button ( viewButtonLabel ) )
155
155
{
156
156
bool newViewState = ! currentViewState ;
157
- MultiplayerManager . m_Instance . ToggleUserViewOnlyMode ( newViewState , playerId ) ;
157
+ multiplayerManager . ToggleUserViewOnlyMode ( newViewState , playerId ) ;
158
158
viewOnlyStates [ playerId ] = newViewState ;
159
159
EditorUtility . SetDirty ( target ) ;
160
160
}
161
161
162
+ // ** Kick Out button (only if room owner) **
163
+ if ( multiplayerManager . IsUserRoomOwner ( ) )
164
+ {
165
+ if ( GUILayout . Button ( "Kick Out" ) )
166
+ {
167
+ multiplayerManager . KickPlayerOut ( playerId ) ;
168
+ EditorUtility . SetDirty ( target ) ;
169
+ }
170
+ }
171
+
162
172
EditorGUILayout . EndHorizontal ( ) ;
163
173
}
164
174
}
You can’t perform that action at this time.
0 commit comments