public override IDecisionTreeNode MakeDecision(AiContext context) { var units = context.EnemyUnits(Unit.Player); //TODO: check if it's moving and if so record that in unit var target = Unit.FindNearestTarget(units); Unit.ChangeTargetTo(target); context.InsertCommand(Zero, new MakeDecisionCommand(Unit, context, Zero)); return(this); }