Example #1
0
    void FailedThirdCheckPoint()
    {
        thirdCheckPoint = 2;
        string text = data.allData[35].text;

        checkpoint = CheckPointProgress.Three;
        textDisplayer.GetComponent <DialogueManager>().createPlayerTextBoxes(text);
        currentLinearCheck = 0;
        SetupCheckPoint();
    }
Example #2
0
    void CheckPointCompletionCheck()
    {
        switch (checkpoint)
        {
        case CheckPointProgress.None:
            if (isFirstCheckpoint())
            {
                PlayerResponse();
                firstCheckPoint    = 1;
                currentLinearCheck = 0;
                //Call the Individual Success Response for Success
                checkpoint = CheckPointProgress.One;
            }
            break;

        case CheckPointProgress.One:

            if (isSecondCheckpoint())
            {
                Debug.Log("checkpoint 2 bab,...");
                PlayerResponse();
                secondCheckPoint   = 1;
                currentLinearCheck = 0;
                checkpoint         = CheckPointProgress.Two;
            }
            break;

        case CheckPointProgress.Two:
            if (isThirdCheckpoint())
            {
                PlayerResponse();
                checkpoint         = CheckPointProgress.Three;
                currentLinearCheck = 0;
            }
            break;

        case CheckPointProgress.Three:
            if (GetScore() == 0)
            {
                textDisplayer.GetComponent <DialogueManager>().createTheTextBoxes("...How do you deal with the world?");
            }
            else if (GetScore() == 1)
            {
                textDisplayer.GetComponent <DialogueManager>().createTheTextBoxes("Oh! It's... a bit better...");
            }
            else if (GetScore() == 2)
            {
                textDisplayer.GetComponent <DialogueManager>().createTheTextBoxes("Thanks doc! This is just like the simulations!");
            }
            checkpoint = CheckPointProgress.Four;
            break;
        }
        SetupCheckPoint();
    }