public void Join()
 {
     if (gameListener != null)
     {
         foreach (var player in this.dataSlot.players)
         {
             gameListener.OnJoined(this, totalPlayers, player);
         }
         totalPlayers++;
         currentTurn = 0;
         gameListener.OnPlayerTurn(currentTurn);
     }
 }
Esempio n. 2
0
 public virtual void OnJoinedRoom()
 {
     Debug.Log("OnJoinedRoom() called by PUN. Now this client is in a room. From here on, your game would be running. For reference, all callbacks are listed in enum: PhotonNetworkingMessage");
     gameListener.OnJoined(this, 0, this.dataSlot.GetCurrentPlayerData());
 }