예제 #1
0
        protected void Init(IFSMParam _param)
        {
            m_viewMediator = ((SCreateHeroParam)_param).Mediator;

            //m_btnConfirm01Helper = BtnConfirm01.gameObject.AddComponent<UCreateHeroConfirmSelectableHelper>();
            //m_btnConfirm01Helper.SetupHelper(UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Up, UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Down,
            //                   UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Over, UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_CanInteractable);

            (BtnConfirm01 as Button).onClick.AddListener(onClickSubFrame01ConfirmBtn);
            BtnSexBoy.onSelectedChanged.AddListener((bSelected) => { if (bSelected)
                                                                     {
                                                                         onClickSexTypeButton(0);
                                                                     }
                                                    });
            BtnSexGirl.onSelectedChanged.AddListener((bSelected) => { if (bSelected)
                                                                      {
                                                                          onClickSexTypeButton(1);
                                                                      }
                                                     });
            UserNameField.onValueChanged.AddListener(OnInputPlayerTextChange);
            BtnRandonName.onClick.AddListener(onClickRandomNameButton);

            BtnSexBoy.Selected = true;
            ErrorHint.text     = "";
        }
예제 #2
0
        protected void Init(IFSMParam _param)
        {
            m_viewMediator = ((SCreateHeroParam)_param).Mediator;

            BtnConfirm02.interactable = false;


            //var helper = BtnConfirm02.gameObject.AddComponent<UCreateHeroConfirmSelectableHelper>();
            //helper.SetupHelper(UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Up, UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Down,
            //                   UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_Over, UEffectPrefabType.UEPT_CreateHeroView_BtnConfirm_CanInteractable);

            (BtnConfirm02 as Button).onClick.AddListener(onClickSubFrame02ConfirmBtn);
        }
예제 #3
0
        public override bool Init(IUIWnd wnd)
        {
            mediator = wnd as UMediatorCreateHero;

            if (StateList == null || StateList.Length < 2)
            {
                Trace.LogWarning("StateList 未初始化。");
            }

            StateData.Mediator = mediator;

            (StateList[(uint)ECreateHero.ECH_Name] as IFSM_Base).Exit(StateData);
            (StateList[(uint)ECreateHero.ECH_Hero] as IFSM_Base).Exit(StateData);

            SwitchState(ECreateHero.ECH_Name);

            return(base.Init(wnd));
        }