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
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }
Beispiel #2
0
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(VerifyCanUseNetwork() && IsMasterClient && networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }