Exemplo n.º 1
0
    void EndTemple()
    {
        door.SetActive(false);
        float  value = 5f;
        string response;

        if (choice == 1)
        {
            response = "a";
            templeQuestionUI.text = templeFirstAnswer;
        }
        else
        {
            response = "b";
            templeQuestionUI.text = templeSecondAnswer;
        }
        myTestSystem.addAnswer(templeQuestionAnswerId, response);

        // templeQuestionUI.text = "This temple is now sealed by your decisions";
        firstAnswerUI.text  = "";
        secondAnswerUI.text = "";

        // if(templeQuestionAnswerId == 0 || templeQuestionAnswerId == 7 || templeQuestionAnswerId == 14 || templeQuestionAnswerId == 21)
        // {
        //     if(choice == 1)
        //     {
        //         myPersonalitySystem.IEChange(value);
        //     }
        //     else if(choice == 2)
        //     {
        //         myPersonalitySystem.IEChange(-value);
        //     }
        // }
        // else if (templeQuestionAnswerId == 1 || templeQuestionAnswerId == 8 || templeQuestionAnswerId == 15 || templeQuestionAnswerId == 22)
        // {
        //     if (choice == 1)
        //     {
        //         myPersonalitySystem.SNChange(value);
        //     }
        //     else if (choice == 2)
        //     {
        //         myPersonalitySystem.SNChange(-value);
        //     }
        // }
        // else if (templeQuestionAnswerId == 2 || templeQuestionAnswerId == 9 || templeQuestionAnswerId == 16 || templeQuestionAnswerId == 23)
        // {
        //     if (choice == 1)
        //     {
        //         myPersonalitySystem.TFChange(value);
        //     }
        //     else if (choice == 2)
        //     {
        //         myPersonalitySystem.TFChange(-value);
        //     }
        // }
        // else if (templeQuestionAnswerId == 3 || templeQuestionAnswerId == 10 || templeQuestionAnswerId == 17 || templeQuestionAnswerId == 24)
        // {
        //     if (choice == 1)
        //     {
        //         myPersonalitySystem.JPChange(value);
        //     }
        //     else if (choice == 2)
        //     {
        //         myPersonalitySystem.JPChange(-value);
        //     }
        // }
    }