public override GameObject GetTargetObject() { foreach (var it in targetList) { if (it.IsValid()) { currentLocation = it; return(it.GetTargetObject()); } } return(null); }
public override Vector2 GetLocation() { foreach (var it in targetList) { if (it.IsValid()) { currentLocation = it; return(it.GetLocation()); } } return(Vector2.zero); }
public override AiPerceiveUnit GetTarget() { foreach (var it in targetList) { if (it.IsValid()) { currentLocation = it; return(it.GetTarget()); } } return(null); }