Esempio n. 1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (!collision.gameObject.CompareTag("PlayerProjectile") && !collision.gameObject.CompareTag("PlayerUlt"))
     {
         SceneManagement.LevelSelect();
     }
 }
Esempio n. 2
0
    public void ToLevelSelect()
    {
        Time.timeScale = 1f;
        isPaused       = false;
        pm.SetPauseUI(isPaused);

        SceneManagement.LevelSelect();
    }
Esempio n. 3
0
    public void ToLevelSelect()
    {
        if (pm.IsHelpOpen())
        {
            return;
        }

        playBossVanquished = false;

        Time.timeScale = 1f;
        isPaused       = false;
        pm.SetPauseUI(isPaused);

        SceneManagement.LevelSelect();
    }
Esempio n. 4
0
    private IEnumerator ShowImage()
    {
        float alpha = 0;

        while (alpha < 1)
        {
            alpha += .05f;

            Color c = image.color;
            c.a         = alpha;
            image.color = c;

            yield return(null);
        }

        yield return(new WaitForSeconds(3f));

        SceneManagement.LevelSelect();
    }
Esempio n. 5
0
 public void LevelSelect()
 {
     SceneManagement.LevelSelect();
 }