Пример #1
0
    // -------------- Inherited from MonoBehavior ---------------------------- //

    void Awake()
    {
        // Associate animators
        animLogo = AssociateAnim("Logo");
        animButtonParticipation = AssociateAnim("ButtonParticipation");
        animTextCentral         = AssociateAnim("TextCentral");

        // ...texts
        textCentral = AssociateText("TextCentral");

        // ...buttons
        buttonParticipation = AssociatePushButton("ButtonParticipation", ButtonParticipation);

        // ...and get GameController
        gameController = GetComponent <GameControllerLfp> ();
    }
Пример #2
0
    // --------------- Overloaded Unity's functions -------------------------- //

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