예제 #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);
 }