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