private void Fn_StartGame() { if (Input.anyKeyDown) { deleg_Event = Fn_MainMenu; Text_InputAny.enabled = false; Rect_MenuButtons.gameObject.SetActive(true); } }
private void Fn_MainMenu() { if (Input.GetKeyDown(KeyCode.Escape)) { deleg_Event = Fn_StartGame; Text_InputAny.enabled = true; Rect_MenuButtons.gameObject.SetActive(false); } }
private void Start() { AudioManager.Instance.Fn_PlayBgm(AudioManager.Instance.theAudioData.Clip_MenuBgm); deleg_Event = Fn_StartGame; Text_InputAny.enabled = true; Canvas_Background.enabled = false; Rect_MenuButtons.gameObject.SetActive(false); if (UIManagerScript == null) { UIManagerScript = GameSystem.Instance.gameObject.GetComponent <UIManager>(); } }