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