public override void stopExecution() { base.stopExecution(); HoverJet jet = controller.GetComponentInChildren <HoverJet> (); if (jet != null) { jet.setAvailability(true); jet.setTarget(null); } }
public override void execute() { base.execute(); HoverJet jet = controller.GetComponentInChildren <HoverJet>(); if (jet != null) { jet.setTarget(powerStation.labelHandle); jet.setAvailability(false); } }
public override void execute() { base.execute(); HoverJet jet = controller.GetComponentInChildren <HoverJet> (); if (jet != null) { jet.setTarget(dropPoint, true); jet.setAvailability(false); } }
public override void execute() { base.execute(); HoverJet jet = controller.GetComponentInChildren <HoverJet> (); if (jet != null) { currentDestination = getNearest(controller.transform.position); jet.setTarget(routePoints[currentDestination]); jet.setAvailability(false); } }