예제 #1
0
파일: Character.cs 프로젝트: MyEyes/MobaAI
 public bool InRange(ITargetable target)
 {
     return((this.position - target.GetPosition()).Length() < info.range + this.GetSize() / 2 + target.GetSize() / 2);
 }
예제 #2
0
파일: Character.cs 프로젝트: MyEyes/MobaAI
 public bool InRange(ITargetable target)
 {
     return (this.position - target.GetPosition()).Length() < info.range + this.GetSize()/2 + target.GetSize()/2;
 }