public override void onMessage(RobotMessage message) { if (message.Message.Equals("target reached")) { RobotArms arms = controller.GetComponentInChildren <RobotArms> (); arms.dropTarget(); } }
public override void stopExecution() { base.stopExecution(); RobotArms arms = controller.GetComponentInChildren <RobotArms> (); if (arms != null) { arms.setAvailability(true); arms.dropTarget(); } }