Beispiel #1
0
 public bool InRange(ITargetable target)
 {
     return((this.position - target.GetPosition()).Length() < info.range + this.GetSize() / 2 + target.GetSize() / 2);
 }
Beispiel #2
0
 public bool InRange(ITargetable target)
 {
     return (this.position - target.GetPosition()).Length() < info.range + this.GetSize()/2 + target.GetSize()/2;
 }