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); } } }
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(); } }
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); }
void Start() { Introducao.SetActive(true); Menu01.SetActive(false); Menu02.SetActive(false); }
void setMenu01() { transform.parent = cam_menu1_pos.transform; Menu01.GetComponent <Animator>().SetBool("On", true); Menu02.GetComponent <Animator>().SetBool("On", false); }