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