예제 #1
0
 protected override void OnClose()
 {
     mMainAnimationGo.DestroySelf();
     mMainAnimationGo = null;
     mResLoader.Recycle2Cache();
     mResLoader     = null;
     mMainAnimation = null;
     PlayerPrefsUtil.SetFirstIn(false);
 }
예제 #2
0
 protected override void OnInit(QFramework.IUIData uiData)
 {
     mData            = uiData as MainGuidePanelData ?? new MainGuidePanelData();
     mMainAnimationGo = mResLoader.LoadSync <GameObject>("MainAnimation")
                        .Instantiate()
                        .transform
                        .LocalScale(1.35475f, 1.35475f, 1.35475f)
                        .Position(-11.436f, -5.028f, 0)
                        .ApplySelfTo((self) =>
     {
         mMainAnimation = self.GetComponent <MainAnimation>();
     })
                        .gameObject;
     mMainAnimation.LionNotify();
     ImgChineseNotify.onClick.AddListener(() =>
     {
         ImgChineseNotify.gameObject.SetActive(false);
         mMainAnimation.DionNotify();
         ImgEnglishNotify.gameObject.SetActive(true);
     });
     ImgEnglishNotify.onClick.AddListener(() =>
     {
         ImgEnglishNotify.gameObject.SetActive(false);
         mMainAnimation.TongTongNotify();
         ImgLearningNotify.gameObject.SetActive(true);
     });
     ImgWifiNotify.onClick.AddListener(() =>
     {
         SimpleEventSystem.Publish(new MainPanelGuideDismiss());
         Back();
     });
     ImgLearningNotify.onClick.AddListener(() =>
     {
         ImgLearningNotify.gameObject.SetActive(false);
         mMainAnimation.WifiNotify();
         ImgWifiNotify.gameObject.SetActive(true);
     });
 }