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