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