public void ShowPage(GEM_TAB_PAGE page = GEM_TAB_PAGE.PageGemAll) { var nPage = (int)page; packPage = page; EventDispatcher.Instance.DispatchEvent(new UIEvent_AstrologyBagTabClick(nPage)); }
private void OnEnable() { #if !UNITY_EDITOR try { #endif var controllerBase = UIManager.Instance.GetController(UIConfig.AstrologyUI); if (controllerBase == null) { return; } Binding.SetBindDataSource(controllerBase.GetDataModel("MainData")); Binding.SetBindDataSource(controllerBase.GetDataModel("DetailData")); PlayerBinding.SetBindDataSource(PlayerDataManager.Instance.PlayerDataModel); if (SelectLogic != null) { packPage = (GEM_TAB_PAGE)SelectLogic.Select; } ShowPage(packPage); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }