/// <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); } }
/// <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); }