Пример #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Mouse0))
     {
         if (SGUI.PixelInPercentages(Input.mousePosition, Back.Percentages))
         {
             SceneManager.LoadScene("Menu");
         }
     }
 }
Пример #2
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Mouse0))
     {
         if (SGUI.PixelInPercentages(Input.mousePosition, Flecha.Percentages))
         {
             SceneManager.LoadScene("GamePlay");
         }
     }
 }
Пример #3
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Mouse0))
        {
            if (AudioListener.volume == 0 && SGUI.PixelInPercentages(Input.mousePosition, On.Percentages))
            {
                AudioListener.volume = 100;
            }

            if (AudioListener.volume != 0 && SGUI.PixelInPercentages(Input.mousePosition, Off.Percentages))
            {
                AudioListener.volume = 0;
            }

            if (SGUI.PixelInPercentages(Input.mousePosition, Back.Percentages))
            {
                SceneManager.LoadScene("Menu");
            }
        }
    }
Пример #4
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Mouse0))
        {
            if (SGUI.PixelInPercentages(Input.mousePosition, Start.Percentages))
            {
                source.PlayOneShot(clickSound);
                SceneManager.LoadScene("Intro");
            }

            if (SGUI.PixelInPercentages(Input.mousePosition, Explore.Percentages))
            {
                source.PlayOneShot(clickSound);
                SceneManager.LoadScene("Explore");
            }

            if (SGUI.PixelInPercentages(Input.mousePosition, Options.Percentages))
            {
                source.PlayOneShot(clickSound);
                SceneManager.LoadScene("Options");
            }
        }
    }