Exemplo n.º 1
0
    public override bool canExecute()
    {
        RobotArms arms = controller.GetComponentInChildren <RobotArms>();
        RoboEyes  eyes = controller.GetComponentInChildren <RoboEyes>();

        return(eyes != null && eyes.hasScanner() && arms != null && arms.hasTarget());
    }
Exemplo n.º 2
0
    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));
    }
Exemplo n.º 3
0
    public override bool isStale()
    {
        RobotArms arms = controller.GetComponentInChildren <RobotArms>();

        return(target == null || arms == null || (arms.getProposedTarget() != target && !arms.hasTarget()));
    }
Exemplo n.º 4
0
    public override bool canExecute()
    {
        RobotArms arms = controller.GetComponentInChildren <RobotArms> ();

        return((arms != null) && (dropPoint != null) && (arms.hasTarget()));
    }