// -------------- 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> (); }
// --------------- Overloaded Unity's functions -------------------------- // void Awake() { gameController = GetComponent <GameControllerLfp> (); }