bool RunPilot()
    {
        try
        {
            Debug.Log("Reached tutorial method");
            instructionPanel.SetActive(true);
            instructionTextMesh.text = textArray[0];

            pilotIndex = 0;

            globalTimer = 0;
            return logger.OpenFile("2D_Pilot", true);

        }
        catch
        {
            return false;
        }
    }
Exemplo n.º 2
0
                      PREAMBLE_LEN      = 7;     //number of "intro" slides before the tutorial starts properly


    bool RunTutorial()
    {
        try
        {
            Debug.Log("Reached tutorial method");
            instructionPanel.SetActive(true);

            instructionTextMesh.text = textArray[0];

            for (int i = 0; i < 15; i++)
            {
                Debug.Log(i + ": " + textArray[i]);
            }

            tutorialIndex = 0;
            return(logger.OpenFile("2D_Tutorial", true));
        }
        catch
        {
            return(false);
        }
    }