SetMasterClient() public method

Uses a well-known property to set someone new as Master Client in room (requires "Server Side Master Client" feature).
public SetMasterClient ( int nextMasterId ) : bool
nextMasterId int
return bool
Exemplo n.º 1
0
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }
Exemplo n.º 2
0
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(VerifyCanUseNetwork() && IsMasterClient && networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }