IEnumerator PreloadMenu() { yield return(new WaitForSeconds(0.3f)); manager = GameObject.Find("MySqlManager").GetComponent <DB_Manager>(); // managerEvent = GameObject.Find("MySqlManager").GetComponent<EVENTCREATOR_Manager>(); cadenas = GameObject.FindGameObjectsWithTag("Cadenas"); currentStagePlayer = 1; if (cadenas.Length > 0) { foreach (GameObject cadena in cadenas) { cadena.SetActive(false); } } CheckLogin(); infosTransition = GameObject.Find("InfosStock").GetComponent <InfosTransition>(); choixManette = GameObject.Find("Stages").GetComponent <ChoixManette>(); infosTransition.CheckManette(); choixManette.MenuPrincipal(); }
// Use this for initialization void Start() { infosTransition = GameObject.Find("InfosStock").GetComponent <InfosTransition>(); infosTransition.CheckManette(); }