| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | 
							- using FairyGUI;
 
- using System;
 
- using UI.Card;
 
- namespace GFGGame
 
- {
 
-     public class CardView : BaseView
 
-     {
 
-         private UI_CardUI _ui;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_CardUI.PACKAGE_NAME;
 
-             _ui = UI_CardUI.Create();
 
-             viewCom = _ui.target;
 
-             isfullScreen = true;
 
-             isReturnView = true;
 
-             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
 
-             _ui.m_loaStory1.target.onClick.Add(() => { OnClickLoaStory(1); });
 
-             _ui.m_loaStory2.target.onClick.Add(() => { OnClickLoaStory(2); });
 
-             _ui.m_loaStory3.target.onClick.Add(() => { OnClickLoaStory(3); });
 
-             _ui.m_loaStory4.target.onClick.Add(() => { OnClickLoaStory(4); });
 
-             _ui.m_loaDetail.onClick.Add(OnClickLoaDetail);
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             // GuideController.TryGuideCardViewBtnDetail(_ui.m_loaDetail);
 
-             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gxhd_bjbj");
 
-         }
 
-         /*******************************************************¼àÌýº¯Êý**************************************************/
 
-         private void OnClickBtnBack()
 
-         {
 
-             ViewManager.GoBackFrom(typeof(CardView).FullName);
 
-             _ui.m_c1.selectedIndex = 0;
 
-             _ui.m_t0.Stop(true, false);
 
-         }
 
-         private void OnClickLoaStory(int roleId)
 
-         {
 
-             PromptController.Instance.ShowFloatTextPrompt("ÔÝ먦·Å" + roleId);
 
-         }
 
-         private void OnClickLoaDetail()
 
-         {
 
-             _ui.m_c1.selectedIndex = 1;
 
-             _ui.m_t0.Play(() =>
 
-             {
 
-                 _ui.m_c1.selectedIndex = 0;
 
-             });
 
-             _ui.m_t0.SetHook("open", () =>
 
-             {
 
-                 ViewManager.Show<CardDetailView>();
 
-             });
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-         }
 
-     }
 
- }
 
 
  |