private void AuthorityHandlePartyOwnerStateUpdated(bool oldState, bool newState) { if (!hasAuthority) { return; } AuthorityOnPartyOwnerStateUpdated?.Invoke(newState); }
private void AuthorityHandlePartyOwnerStateUpdated(bool oldstate, bool newState) { //Whenever partyOwner changes we invoke the authorityPartyOwner event. Only for the client trhat has authority over it. if (!hasAuthority) { return; } AuthorityOnPartyOwnerStateUpdated?.Invoke(newState); }