Exemple #1
0
 public void LoadMenu()
 {
     pauseMenuUI.SetActive(false);
     Time.timeScale = 1f;
     sn.Fadeto("Menu");
     Debug.Log("loading menu");
     Debug.Log(SceneManager.GetActiveScene().name);
 }
Exemple #2
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("entry"))
        {
            objText[1].SetActive(true);
            Destroy(objText[0]);
            foreach (var item in pieces)
            {
                item.SetActive(true);
            }
            fullnote.SetActive(false);
            //aniL.SetBool("c",true);
            //aniR.SetBool("c",true);
            Destroy(other);
        }

        if (other.CompareTag("canvas"))
        {
            objText[2].SetActive(true);
            Destroy(objText[1]);
        }

        if (other.CompareTag("Exit"))
        {
            sn.Fadeto("test3");
        }
    }
Exemple #3
0
 public void PlayGame()
 {
     Cursor.visible = false;
     sn.Fadeto("test2");
     //SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
 }