Esempio n. 1
0
 void Awake()
 {
     sfxSound = GameObject.FindObjectOfType<SFXMenu> ();
 }
Esempio n. 2
0
    void Awake()
    {
        if (uiManager == null)
            uiManager = this;

        sfxSound = GetComponentInChildren<SFXMenu> ();

        // Compteur
        defaultTextColor = meterText.color;
        scaleInitial = meterText.rectTransform.localScale.x;
    }
Esempio n. 3
0
    /* Fin de l'écran des statistiques */
    /***********************************/
    void Awake()
    {
        if (mainMenuManager == null)
            mainMenuManager = GameObject.FindGameObjectWithTag ("GameMaster").GetComponent<MainMenuManager> ();

        sMusic = bMusic.GetComponentInChildren<Slider> ();
        sSfx = bSfx.GetComponentInChildren<Slider> ();

        sfxSound = GetComponentInChildren<SFXMenu> ();
    }