Example #1
0
 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();
     }
 }
Example #2
0
        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);
        }