示例#1
0
    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();
    }
示例#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 (SGUI.PixelInPercentages(Input.mousePosition, Back.Percentages))
         {
             SceneManager.LoadScene("Menu");
         }
     }
 }
示例#4
0
    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();
    }
示例#5
0
    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();
    }
示例#6
0
    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();
    }
示例#7
0
    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();
    }
示例#8
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");
            }
        }
    }
示例#9
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");
            }
        }
    }
示例#10
0
文件: SGUI.cs 项目: Elringus/HajiJam
 private void OnApplicationQuit()
 {
     _instance = null;
 }
示例#11
0
文件: SGUI.cs 项目: Elringus/HajiJam
 private void OnApplicationQuit()
 {
     _instance = null;
 }
示例#12
0
文件: SGUI.cs 项目: Elringus/QBubbles
 private void OnApplicationQuit()
 {
     _i = null;
 }