Esempio n. 1
0
 private void Fn_StartGame()
 {
     if (Input.anyKeyDown)
     {
         deleg_Event           = Fn_MainMenu;
         Text_InputAny.enabled = false;
         Rect_MenuButtons.gameObject.SetActive(true);
     }
 }
Esempio n. 2
0
 private void Fn_MainMenu()
 {
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         deleg_Event           = Fn_StartGame;
         Text_InputAny.enabled = true;
         Rect_MenuButtons.gameObject.SetActive(false);
     }
 }
Esempio n. 3
0
    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>();
        }
    }