void OnGUI() { SGUI.DrawTexture(60, 60, 40, 40, Instrucciones); float size = 6; float sizeb = 10; Back = new SGUI.SelfButton(90, 5, size, sizeb, BackT, 1.1f, 1.1f); Back.Draw(); }
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 (SGUI.PixelInPercentages(Input.mousePosition, Back.Percentages)) { SceneManager.LoadScene("Menu"); } } }
void OnGUI() { SGUI.DrawTexture(0, 0, 100, 100, Background); float size = 6; float sizeb = 10; Back = new SGUI.SelfButton(50, 70, size, sizeb, BackT, 1.1f, 1.1f); Back.Draw(); }
void OnGUI() { SGUI.DrawTexture(0, 0, 100, 100, Background2); float size = 15; Flecha = new SGUI.SelfButton(80, 80, size, size, FlechaT, 1.2f, 1.1f); Flecha.Draw(); }
void OnGUI() { SGUI.DrawTexture(0, 0, 100, 100, Background); float size = 15; float sizeb = 13; Start = new SGUI.SelfButton(10, 70, size, size, StartT, 1.1f, 1.1f); Explore = new SGUI.SelfButton(40, 72, size, sizeb, ExploreT, 1.1f, 1.1f); Options = new SGUI.SelfButton(70, 70, size, size, OptionsT, 1.1f, 1.1f); Start.Draw(); Options.Draw(); Explore.Draw(); }
void OnGUI() { SGUI.DrawTexture(0, 0, 100, 100, Background); float size = 15; float sizeb = 10; float sized = 6; float sizee = 10; On = new SGUI.SelfButton(42, 50, size, sizeb, OnT, 1.1f, 1.1f); Off = new SGUI.SelfButton(42, 65, size, sizeb, OffT, 1.1f, 1.1f); Back = new SGUI.SelfButton(90, 80, sized, sizee, BackT, 1.1f, 1.1f); On.Draw(); Off.Draw(); Back.Draw(); }
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"); } } }
private void OnApplicationQuit() { _instance = null; }
private void OnApplicationQuit() { _i = null; }