void Update() { if (Input.GetKeyDown(KeyCode.Mouse0)) { if (SGUI.PixelInPercentages(Input.mousePosition, Back.Percentages)) { SceneManager.LoadScene("Menu"); } } }
void Update() { if (Input.GetKeyDown(KeyCode.Mouse0)) { if (SGUI.PixelInPercentages(Input.mousePosition, Flecha.Percentages)) { SceneManager.LoadScene("GamePlay"); } } }
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"); } } }
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"); } } }