RequestAuthority
method in Coherence.Toolkit.CoherenceSync
Methods
public bool RequestAuthority(AuthorityType authorityType)
Try to get authority over this entity.
Parameters
Type | Name | Description |
---|---|---|
AuthorityType | authorityType |
Returns
Type | Description |
---|---|
bool | true if calling this method succeeded. The authority request itself can still fail. |
Remarks
Listen to the events OnAuthTransferComplete and OnAuthorityRequestRejected to get notified whether the request succeeded or not.