public override Endeavour constructEndeavour(RobotController controller) { Battery battery = controller.GetComponentInChildren<Battery>(); if (parent == null || battery == null) { return null; } RechargeAction action = new RechargeAction(controller, goals, parent, battery); action.rechargePoint = rechargePoint; return action; }
protected override Endeavour createEndeavour(RobotController controller, Dictionary<TagEnum, Tag> tags) { Battery battery = controller.GetComponentInChildren<Battery>(); if (battery == null) { return null; } RechargeAction action = new RechargeAction(this, controller, goals, tags, battery); action.rechargePoint = rechargePoint; return action; }
public override Endeavour constructEndeavour(RobotController controller) { Battery battery = controller.GetComponentInChildren <Battery>(); if (parent == null || battery == null) { return(null); } RechargeAction action = new RechargeAction(controller, goals, parent, battery); action.rechargePoint = rechargePoint; return(action); }