RemoveClientAuthority() public method

Removes ownership for an object for a client by its conneciton.

public RemoveClientAuthority ( NetworkConnection conn ) : bool
conn NetworkConnection The connection of the client to remove authority for.
return bool
Esempio n. 1
0
 void CmdChangeColor(GameObject go, Color c)
 {
     objNetId = go.GetComponent<NetworkIdentity>();
     objNetId.AssignClientAuthority(connectionToClient);
     RpcUpdateTower(go, c);
     objNetId.RemoveClientAuthority(connectionToClient);
 }