Last updated
Was this helpful?
Was this helpful?
var coherenceSync = target.GetComponent<CoherenceSync>();
coherenceSync.RequestAuthority();// There Unity Events in CoherenceSync help us understand
// what happened with authority requests and act accordingly.
public UnityEvent OnAuthorityTransferRejected;
// TRUE is authority is transfered being gained, FALSE if lost
public UnityEvent<bool> OnBeforeAuthorityTransfer;
// TRUE is authority is transfered being gained, FALSE if lost
public UnityEvent<bool> OnAfterAuthorityTransfer;