Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     //retrieve the game object called GameManager
     gameManagerForCSS = GameObject.Find("GameManager");
     //retrieve the script called GameManagerConceptSelectionScreen.cs that is attached under GameManager
     gcss = gameManagerForCSS.GetComponent <GameManagerConceptSelectionScreen>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     //retrieve the game object called GameManager
     gameManagerForCSS = GameObject.Find("GameManager");
     //retrieve the script called GameManagerConceptSelectionScreen.cs that is attached under GameManager
     gcss = gameManagerForCSS.GetComponent <GameManagerConceptSelectionScreen>();
     //retrieve the NEXT button
     nextButton = GameObject.Find("Bottom panel with slider").GetComponentInChildren <Button>();
     UpdateSliderBar();
     UpdateQnsNumber();
     DisableNextButton();
     DisplayContentInHeaders();
     DisplayQuestion();
     DisplayAnswers();
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        //retrieve the game object called GameManager
        gameManagerForCSS = GameObject.Find("GameManager");
        //retrieve the script called GameManagerConceptSelectionScreen.cs that is attached under GameManager
        gcss = gameManagerForCSS.GetComponent <GameManagerConceptSelectionScreen>();
        //update that user attempted the quesiton

        //checks if whether user is at the last question
        if (gcss.qnsList.Count == 8)
        {
            GameObject proceedButtonObj  = GameObject.Find("Next button");
            Text       proceedButtonText = proceedButtonObj.GetComponentInChildren <Text>();
            proceedButtonText.text = "FINISH";
        }
    }