Esempio n. 1
0
 IEnumerator cinématiquelobby()
 {
     TutoLobby1.SetActive(true);
     cameratutolobby.SetActive(true);
     cinematiquecamera = cameratutolobby.GetComponent<CinématiqueCaméra>();
     StartCoroutine(cinematiquecamera.cinématiquetuto());
     for (int i = 0; i < scriptpersonages.Length; i++)
         scriptpersonages[i].playercanmove = false;
     AudioSource.PlayClipAtPoint(sound[0], Players[0].transform.position);
     yield return new WaitForSeconds(3);
     TutoLobby1.SetActive(false);
     TutoLobby2.SetActive(true);
     yield return new WaitForSeconds(3);
     TutoLobby2.SetActive(false);
     TutoLobby3.SetActive(true);
     cameratutolobby.SetActive(false);
     cameratutodoor1.SetActive(true);
     yield return new WaitForSeconds(1.5f);
     cameratutodoor1.SetActive(false);
     cameratutodoor2.SetActive(true);
     yield return new WaitForSeconds(1.5f);
     cameratutodoor2.SetActive(false);
     cameratutodoor3.SetActive(true);
     yield return new WaitForSeconds(1.5f);
     cameratutodoor3.SetActive(false);
     cameratutotp.SetActive(true);
     TutoLobby3.SetActive(false);
     TutoLobby4.SetActive(true);
     yield return new WaitForSeconds(2);
     cameratutotp.SetActive(false);
     cameratutoheal.SetActive(true);
     TutoLobby4.SetActive(false);
     TutoLobby5.SetActive(true);
     yield return new WaitForSeconds(2);
     cameratutoheal.SetActive(false);
     TutoLobby5.SetActive(false);
     for (int i = 0; i < scriptpersonages.Length; i++)
         scriptpersonages[i].playercanmove = true;
 }
Esempio n. 2
0
 public void cinématiquemenu()
 {
     cameratutolobby.SetActive(true);
     cinematiquecamera = cameratutolobby.GetComponent<CinématiqueCaméra>();
     StartCoroutine(cinematiquecamera.cinématiquetuto());
 }