Esempio n. 1
0
 public void Collide(Collision collision, ShellForCollision shell)
 {
     collision.unit = this.unit;
     if (this.team != shell.team)
     {
         this.hp -= shell.damage;
     }
 }
Esempio n. 2
0
 public bool IsOwnerOfShell(ShellForCollision shell)
 {
     return(this.unit == shell.ownerOfShell);
 }