/// <summary> /// Connecté à une room /// </summary> public override void OnJoinedRoom() { textRoomName.text = PhotonNetwork.room.Name.Substring(1); if (hashSet != null) { hashSet[playername + PhotonNetwork.room.PlayerCount] = PhotonNetwork.playerName; PhotonNetwork.room.SetCustomProperties(hashSet); } else { hashSet = PhotonNetwork.room.CustomProperties; hashSet[playername + PhotonNetwork.room.PlayerCount] = PhotonNetwork.playerName; PhotonNetwork.room.SetCustomProperties(hashSet); } controlPanel.Active_Room(); if (PhotonNetwork.isMasterClient) { controlPanel.Active_Worms(true); } }