// -------------- Inherited from MonoBehavior ---------------------------- //

    void Awake()
    {
        animCanvasUI        = AssociateAnim("CanvasUI");
        animButtonSubmit    = AssociateAnim("ButtonSubmit");
        animButtonLogIn     = AssociateAnim("ButtonLogIn");
        animButtonSendAgain = AssociateAnim("ButtonSendAgain");
        animButtonHome      = AssociateAnim("ButtonHome");
        animTextInformation = AssociateAnim("TextInformation");

        textInformation = AssociateText("TextInformation");

        buttonSubmit    = AssociatePushButton("ButtonSubmit", ButtonSubmit);
        buttonLogIn     = AssociatePushButton("ButtonLogIn", ButtonLogIn);
        buttonHome      = AssociatePushButton("ButtonHome", ButtonHome);
        buttonSendAgain = AssociatePushButton("ButtonSendAgain", ButtonSendAgain);

        gameController = GetComponent <GameControllerSi> ();

        GetInputFields();
        GetToggles();
    }
예제 #2
0
    // --------------- Overloaded Unity's functions -------------------------- //

    void Awake()
    {
        gameController = GetComponent <GameControllerSi> ();
    }