Пример #1
0
    public void Load()
    {
        GameControl.control.Load();
        SceneManager.LoadScene("Scene001");

        AnimalNamesQuestionBank.LoadQuestionList();
        AnimalFoodQuestionBank.LoadQuestionList();
    }
Пример #2
0
    void Start()
    {
        Application.targetFrameRate = 15;

        transparentTextColor.a = 0.0f;

        AnimalFoodQuestionBank.LoadQuestionList();

        answerText1 = GameObject.Find("Answer1Text").GetComponent <Text>();
        answerText2 = GameObject.Find("Answer2Text").GetComponent <Text>();
        answerText3 = GameObject.Find("Answer3Text").GetComponent <Text>();
        answerText4 = GameObject.Find("Answer4Text").GetComponent <Text>();

        answerImage1 = GameObject.Find("Answer 1").GetComponent <Image>();
        answerImage2 = GameObject.Find("Answer 2").GetComponent <Image>();
        answerImage3 = GameObject.Find("Answer 3").GetComponent <Image>();
        answerImage4 = GameObject.Find("Answer 4").GetComponent <Image>();


        questionImage = GetComponent <Image>();

        fairyImage     = GameObject.Find("Fairy").GetComponent <Image>();
        fairyIncorrect = Resources.Load <Sprite>("FairyIncorrect");
        fairyNeutral   = Resources.Load <Sprite>("FairyNeutral");
        fairyCorrect   = Resources.Load <Sprite>("FairyCorrect");

        timerReady = false;

        fairyTalk = GameObject.Find("FairyTalk").GetComponent <Text>();

        if (!GameControl.scene2Started)
        {
            fairyTalk.text   = "Learner, can you help the animal find their food? They will be very thankful if you do ☺.";
            answerText1.text = "Start";
            SimpleSoundManager.playNextLevelSound();
        }
        else
        {
            Answer1();
        }
    }