Esempio n. 1
0
    private void DeleteHouseKeeping(GameObject waypoint)
    {
        // List Reordering Housekeeping
        DeleteWaypoint(waypoint);
        DeleteWaypointReordering();

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

        it.WaypointDeleted(waypoint.gameObject.name);

        // Command Text should not display any point information.
        CommandTextScript cts = CommandText.GetComponent <CommandTextScript>();

        cts.SetTextToWaypointDeleted();

        currPointIndex -= 1;
        Destroy(waypoint);
    }