Beispiel #1
0
    public override void stopExecution()
    {
        base.stopExecution();
        RobotArms arms = controller.GetComponentInChildren <RobotArms> ();

        if (arms != null)
        {
            arms.setAvailability(true);
            arms.dropTarget();
        }
    }
Beispiel #2
0
    public override void execute()
    {
        base.execute();
        RobotArms arms = controller.GetComponentInChildren <RobotArms> ();

        if (arms != null)
        {
            arms.attachTarget(target);
            arms.setAvailability(false);
        }
    }