コード例 #1
0
 private void AuthorityHandlePartyOwnerStateUpdated(bool oldState, bool newState)
 {
     if (!hasAuthority)
     {
         return;
     }
     AuthorityOnPartyOwnerStateUpdated?.Invoke(newState);
 }
コード例 #2
0
ファイル: RTSPlayer.cs プロジェクト: jlarnett/RTSSC
 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);
 }