// Use this for initialization
    void Start()
    {
        questionCanvas = questionCanvas.GetComponent <Canvas> ();
        ResultCanvas   = ResultCanvas.GetComponent <Canvas> ();
        DieCanvas      = DieCanvas.GetComponent <Canvas> ();
        RestgCanvas    = RestgCanvas.GetComponent <Canvas> ();
        NextstgCanvas  = NextstgCanvas.GetComponent <Canvas> ();

        rightTxt    = rightTxt.GetComponent <Text> ();
        wrongTxt    = wrongTxt.GetComponent <Text> ();
        archiveText = archiveText.GetComponent <Text> ();

        questionCanvas.enabled = false;
        ResultCanvas.enabled   = false;
        DieCanvas.enabled      = false;
        RestgCanvas.enabled    = false;
        NextstgCanvas.enabled  = false;
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        MinigameCanvas = MinigameCanvas.GetComponent <Canvas> ();
        ResultCanvas   = ResultCanvas.GetComponent <Canvas> ();
        RestgCanvas    = RestgCanvas.GetComponent <Canvas> ();
        NextstgCanvas  = NextstgCanvas.GetComponent <Canvas> ();

        btn1 = btn1.GetComponent <Button> ();
        btn2 = btn2.GetComponent <Button> ();
        btn3 = btn3.GetComponent <Button> ();

        ans1 = ans1.GetComponent <Button> ();
        ans2 = ans2.GetComponent <Button> ();
        ans3 = ans3.GetComponent <Button> ();

        rightTxt = rightTxt.GetComponent <Text> ();
        wrongTxt = wrongTxt.GetComponent <Text> ();

        ResultCanvas.enabled  = false;
        RestgCanvas.enabled   = false;
        NextstgCanvas.enabled = false;
    }