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(); } }
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); } } }
void Start() { Introducao.SetActive(true); Menu01.SetActive(false); Menu02.SetActive(false); }