示例#1
0
 public override Targetable MoveTarget()
 {
     if (_harvest.IsFull)
     {
         return(CastleHelper.GetCastle(Allegiance));
     }
     return(TargetingFunction.GetClosestTarget(this, CastleHelper.GetCastle(Allegiance), TargetingFunction.IsCorpse, DetectionRange * DetectionRange));
 }
示例#2
0
文件: Unit.cs 项目: Cauch/CastleFight
 public virtual Targetable MoveTarget()
 {
     return(TargetingFunction.GetClosestTarget(this, CastleHelper.GetCastle(!Allegiance), (Targetable Targetable) => TargetingFunction.IsEnemy(this, Targetable), DetectionRange * DetectionRange));
 }