Ejemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (gameObject.name == "ToSalon")
     {
         fader.LoadScene("CuisineSalonNuit");
     }
 }
 void OnTriggerEnter2D(Collider2D other)
 {
     if (gameObject.name == "ToBedroom")
     {
         fader.LoadScene("ChambreNuit");
     }
 }
Ejemplo n.º 3
0
    void OnTriggerEnter2D(Collider2D other)
    {
        switch (gameObject.name)
        {
        case "ToBedroom": fader.LoadScene("ChambreMatin"); break;

        case "ToWork": fader.LoadScene("CuisineSalonNuit"); SoundScript.FadeOut(); break;
        }
    }
Ejemplo n.º 4
0
 void OnTriggerStay2D(Collider2D other)
 {
     if (Input.GetAxis("Vertical") > 0.5f)
     {
         fader.LoadScene("CuisineSalonNuit");
     }
 }
Ejemplo n.º 5
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (gameObject.name == "Chambre")
     {
         fader.LoadScene("CuisineSalonMatin");
     }
 }
Ejemplo n.º 6
0
 // Update is called once per frame
 void Update()
 {
     if (dialog.finished)
     {
         Debug.Log("Dialog finisehd");
         fading.LoadScene("ChambreMatin");
     }
 }
    void OnTriggerStay2D(Collider2D other)
    {
        switch (gameObject.name)
        {
        case "ToSalon": if (Input.GetAxis("Vertical") > 0.5f)
            {
                fader.LoadScene("CuisineSalonMatin");
            }
            break;

        case "AnimationCollider":
            if (Input.GetKeyDown(KeyCode.Return) && !animationLaunched)
            {
                StartCoroutine(LaunchAnimation());
            }
            break;
        }
    }