public void OnAllPlayersJoined(Room room) { Debug.Log("Room full found: " + room.RoomId); if (MultiplayerManager.instance.matchConditionManagerGORef != null) { MatchConditionManager matchConditionManager = MultiplayerManager.instance.matchConditionManagerGORef.GetComponent <MatchConditionManager>(); matchConditionManager.EnableStartGame(); } }
public void OnPlayerLeftRoom(PlayerInfoData player) { Debug.Log("Player Left room : " + player.Name); if (MultiplayerManager.instance.matchConditionManagerGORef != null) { MatchConditionManager matchConditionManager = MultiplayerManager.instance.matchConditionManagerGORef.GetComponent <MatchConditionManager>(); matchConditionManager.DisableStartGame(); } RemovePlayer(player); }