Ejemplo n.º 1
0
 public override void OnStopClient()
 {
     // Returns if we are the server or don't have authority.
     if (!isClientOnly || !hasAuthority)
     {
         return;
     }
     AuthorityOnUnitDeSpawned?.Invoke(this);
 }
Ejemplo n.º 2
0
    public override void OnStopClient()
    {
        if (!hasAuthority)
        {
            return;
        }

        AuthorityOnUnitDeSpawned?.Invoke(this);
    }
Ejemplo n.º 3
0
 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);
 }