public override void OnStopClient() { // Returns if we are the server or don't have authority. if (!isClientOnly || !hasAuthority) { return; } AuthorityOnUnitDeSpawned?.Invoke(this); }
public override void OnStopClient() { if (!hasAuthority) { return; } AuthorityOnUnitDeSpawned?.Invoke(this); }
public override void OnStopClient() { // return if we don't own the current unit or if we are a server also if (!hasAuthority) { return; } // trigger event which will invoke the callbacks in the RtsPlayer script AuthorityOnUnitDeSpawned?.Invoke(this); }