Skip to content

Commit acbfd5b

Browse files
committed
teamIdが2のプレイヤー退出時にデクリメント
1 parent 9040f69 commit acbfd5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/Standard Assets/Lobby/Scripts/Lobby/LobbyPlayer.cs

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ public void OnDestroy()
226226
LobbyPlayerList._instance.RemovePlayer(this);
227227
if (LobbyManager.s_Singleton != null) LobbyManager.s_Singleton.OnPlayersNumberModified(-1);
228228
if (teamId == 1) team1PlayerCount--;
229+
if (teamId == 2) team2PlayerCount--;
229230
}
230231

231232
[Command]

0 commit comments

Comments
 (0)