Ejemplo n.º 1
0
    public override void stopExecution()
    {
        base.stopExecution();
        HoverJet jet = controller.GetComponentInChildren <HoverJet> ();

        if (jet != null)
        {
            jet.setAvailability(true);
            jet.setTarget(null);
        }
    }
Ejemplo n.º 2
0
    public override void execute()
    {
        base.execute();
        HoverJet jet = controller.GetComponentInChildren <HoverJet>();

        if (jet != null)
        {
            jet.setTarget(powerStation.labelHandle);
            jet.setAvailability(false);
        }
    }
Ejemplo n.º 3
0
    public override void execute()
    {
        base.execute();
        HoverJet jet = controller.GetComponentInChildren <HoverJet> ();

        if (jet != null)
        {
            jet.setTarget(dropPoint, true);
            jet.setAvailability(false);
        }
    }
Ejemplo n.º 4
0
    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);
        }
    }