void Awake() { sfxSound = GameObject.FindObjectOfType<SFXMenu> (); }
void Awake() { if (uiManager == null) uiManager = this; sfxSound = GetComponentInChildren<SFXMenu> (); // Compteur defaultTextColor = meterText.color; scaleInitial = meterText.rectTransform.localScale.x; }
/* 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> (); }