示例#1
0
    protected void Menu01Manager()
    {
        if (Input.GetKeyDown(up_b))
        {
            menu01_game.color    = Color.red;
            menu02_configs.color = Color.white;
        }
        if (Input.GetKeyDown(down_b))
        {
            menu02_configs.color = Color.red;
            menu01_game.color    = Color.white;
        }

        if (menu01_game.color == Color.red)
        {
            if (Input.GetKeyDown(start) || Input.GetKeyDown(a) || Input.GetKeyDown(z) || Input.GetKeyDown(e))
            {
                carregar_game = true;
            }
        }

        if (menu02_configs.color == Color.red)
        {
            if (Input.GetKeyDown(start) || Input.GetKeyDown(a) || Input.GetKeyDown(z) || Input.GetKeyDown(e))
            {
                Menu01.SetActive(false);
                Introducao.SetActive(false);
                Menu02.SetActive(true);
            }
        }
    }
示例#2
0
    protected void PanelManager()
    {
        if (Introducao.active == true)
        {
            if (Input.GetKeyDown(back))
            {
                SceneManager.LoadScene(scene_load);
            }

            if (Input.GetKeyDown(start) || Input.GetKeyDown(a) || Input.GetKeyDown(z) || Input.GetKeyDown(e))
            {
                Menu01.SetActive(true);
                Introducao.SetActive(false);
                Menu02.SetActive(false);
            }
        }

        if (Menu01.active == true)
        {
            if (Input.GetKeyDown(back))
            {
                Start();
            }
            Menu01Manager();
        }

        if (Menu02.active == true)
        {
            if (Input.GetKeyDown(back))
            {
                Start();
            }
            Menu02Manager();
        }
    }
示例#3
0
    void setMenu02()
    {
        Vector3 pos = transform.localPosition;

        transform.parent   = cam_menu2_pos.transform;
        transform.position = pos;
        Menu01.GetComponent <Animator>().SetBool("On", false);
        Menu02.GetComponent <Animator>().SetBool("On", true);
    }
示例#4
0
 void Start()
 {
     Introducao.SetActive(true);
     Menu01.SetActive(false);
     Menu02.SetActive(false);
 }
示例#5
0
 void setMenu01()
 {
     transform.parent = cam_menu1_pos.transform;
     Menu01.GetComponent <Animator>().SetBool("On", true);
     Menu02.GetComponent <Animator>().SetBool("On", false);
 }