Exemplo n.º 1
0
 private void AuthorityHandlePartyOwnerStateUpdated(bool oldState, bool newState)
 {
     if (!hasAuthority)
     {
         return;
     }
     AuthorityOnPartyOwnerStateUpdated?.Invoke(newState);
 }
Exemplo n.º 2
0
 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);
 }