Esempio n. 1
0
    private void AddWaypointUndoHouseKeeping(string waypoint)
    {
        // Enable Touches on AddWaypointButton.
        // Enable Touches on DeleteWaypointButton.
        // Switch CommandText.

        AddWaypointButtonScript abs = AddWaypointButton.GetComponent <AddWaypointButtonScript>();

        abs.EnableTap();
        AddWaypointButtonScript absText = AddText.GetComponent <AddWaypointButtonScript>();

        absText.EnableTap();

        DeleteWaypointButtonScript dwbs = DeleteWaypointButton.GetComponent <DeleteWaypointButtonScript>();

        dwbs.EnableTap();
        DeleteWaypointButtonScript dwbsText = DeleteText.GetComponent <DeleteWaypointButtonScript>();

        dwbsText.EnableTap();

        CommandTextScript cts = CommandText.GetComponent <CommandTextScript>();

        cts.SetTextToSelectedWaypoint(waypoint);

        // Default color for AddWaypointButton.

        ButtonColorHandler bch = AddWaypointButton.GetComponent <ButtonColorHandler>();

        bch.UpdateColorToDefault();

        // Default color for DeleteWaypointButton.
        ButtonColorHandler bchd = DeleteWaypointButton.GetComponent <ButtonColorHandler>();

        bchd.UpdateColorToDefault();

        // Switching ZSlider's adding boolean to true.
        DetailBoxDragHelper dbdh = ZSlider.GetComponent <DetailBoxDragHelper>();

        dbdh.AddStateFalse();

        InfoText it = InfoText.GetComponent <InfoText>();

        it.NoAdding();

        // Re-enable tap function for all waypoints.
        EnableAllWaypointTapFunction();
    }