public override void OnStartAuthority() { if (!hasAuthority) { return; } AuthorityOnUnitSpawned?.Invoke(this); }
public override void OnStartClient() { if (!isClientOnly || !hasAuthority) { return; } AuthorityOnUnitSpawned?.Invoke(this); }
public override void OnStartClient() { // Returns if we are the server or don't have authority. if (!isClientOnly || !hasAuthority) { return; } AuthorityOnUnitSpawned?.Invoke(this); }
public override void OnStartAuthority() { AuthorityOnUnitSpawned?.Invoke(this); }
public override void OnStartAuthority() { // trigger event which will invoke the callbacks in the RtsPlayer script AuthorityOnUnitSpawned?.Invoke(this); }
public override void OnStartAuthority() // switching to authority means we can get rid of the if statement we had before { AuthorityOnUnitSpawned?.Invoke(this); }