private void Start() { passage = 0; Time.timeScale = 1f; Screen.SetResolution(1190, 700, false, 60); PanelMenu = GameObject.FindGameObjectWithTag("PanelMenu"); PanelJouer = GameObject.FindGameObjectWithTag("PanelJouer"); PanelNiveau = GameObject.FindGameObjectWithTag("PanelNiveau"); textNiveau = GameObject.Find("TextNiveau").GetComponent <Text>(); PanelJouer.GetComponent <RectTransform>().localScale = new Vector3(0, 0); PanelNiveau.GetComponent <RectTransform>().localScale = new Vector3(0, 0); if (Partie.fadeOut) { StartCoroutine(Partie.FadeOut(Partie.musique, 2f)); } }