コード例 #1
0
        protected override void OnOpen(object userData)
        {
            base.OnOpen(userData);
            procedureMenu = (ProcedureMenu)userData;

            btnStart.onClick.AddListener(() => {
                procedureMenu.StartGameClick();
            });
            btnIntroduce.onClick.AddListener(() => {
                GameEntry.UI.OpenUIForm(Constant.AssetPath.GetUI.IntroducePanelPath, "one", false);
            });
        }
コード例 #2
0
        protected override void OnInit(object userData)
        {
            base.OnInit(userData);
            procedureMenu = null;

            btnStart.gameObject.SetActive(true);
            btnIntroduce.gameObject.SetActive(true);
            btnExit.gameObject.SetActive(true);

            btnExit.onClick.AddListener(() => {
                Application.Quit();
            });
        }