public override bool canExecute() { RobotArms arms = controller.GetComponentInChildren <RobotArms>(); RoboEyes eyes = controller.GetComponentInChildren <RoboEyes>(); return(eyes != null && eyes.hasScanner() && arms != null && arms.hasTarget()); }
public override bool canExecute() { HoverJet jet = controller.GetComponentInChildren <HoverJet> (); RobotArms arms = controller.GetComponentInChildren <RobotArms>(); return(arms != null && !arms.hasTarget() && !target.hasTag(TagEnum.Grabbed) && controller.knowsTarget(target.labelHandle) && jet != null && jet.canReach(target)); }
public override bool isStale() { RobotArms arms = controller.GetComponentInChildren <RobotArms>(); return(target == null || arms == null || (arms.getProposedTarget() != target && !arms.hasTarget())); }
public override bool canExecute() { RobotArms arms = controller.GetComponentInChildren <RobotArms> (); return((arms != null) && (dropPoint != null) && (arms.hasTarget())); }