Esempio n. 1
0
 /// <summary>
 /// Method will be called after a player (not the master) has joined the room
 /// </summary>
 /// <param name="newPlayer"></param>
 public override void OnPlayerEnteredRoom(Photon.Realtime.Player newPlayer)
 {
     if (!newPlayer.IsLocal)
     {
         Debug.Log("3rd partied");
         OnPlayerJoinedDelegate(newPlayer);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Method that will be called when player has left the room
 /// </summary>
 /// <param name="otherPlayer"></param>
 public override void OnPlayerLeftRoom(Photon.Realtime.Player otherPlayer)
 {
     Debug.Log("doei doei");
     OnPlayerLeftDelegate(otherPlayer);
 }