Exemplo n.º 1
0
 public override void Show(params object[] value)
 {
     base.Show(value);
     gameObject.SetActive(true);
     if (commonUIBottomButtonTool == null)
     {
         commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent <CommonUIBottomButtonTool>();
         ShowBottomBtn();
     }
     else
     {
         commonUIBottomButtonTool.ShowAnim();
     }
     RoleAttributePanel.ShowAttributePanelInfo();
     RoleAttributePanel.transform.localPosition = Vector3.zero;
     InitPassiveSkill();
     if (roleInfoPanelModelView == null)
     {
         GameObject roleInfoPanelModelViewObj = GameObject.Instantiate(RoleInfoPanelModelViewPrefab) as GameObject;
         roleInfoPanelModelView = roleInfoPanelModelViewObj.GetComponent <RoleModelView_WithNewScene>();
         roleInfoPanelModelView.Init(RoleModelView_WithNewScene.PanelType.HeroInfoPanel);
         DragButton.SetDragCallback(roleInfoPanelModelView.OnDragBtnDrag);
     }
     else
     {
         roleInfoPanelModelView.Show();
     }
 }
Exemplo n.º 2
0
//        IEnumerator ActiveBackBtn()
//        {
//            yield return new WaitForSeconds(0.3f);
//            BackButton.SetMyButtonActive(true);
//        }
        public override void Show(params object[] value)
        {
            SoundManager.Instance.PlaySoundEffect("Sound_UIEff_Avatar_UIOpen");
//            BackButton.SetMyButtonActive(false);
//            StartCoroutine(ActiveBackBtn());
            base.Show(value);
            //m_CommonPanelTitle.TweenShow();
//            if (commonUIBottomButtonTool == null)
//            {
//                commonUIBottomButtonTool = CreatObjectToNGUI.InstantiateObj(UIBottomBtnPrefab, CreatBottomBtnPoint).GetComponent<CommonUIBottomButtonTool>();
//                ShowBottomBtn();
//            }
//            else
//            {
//                commonUIBottomButtonTool.ShowAnim();
//            }
            if (roleInfoPanelModelView == null)
            {
                GameObject roleInfoPanelModelViewObj = GameObject.Instantiate(RoleInfoPanelModelViewPrefab) as GameObject;
                roleInfoPanelModelView = roleInfoPanelModelViewObj.GetComponent <RoleModelView_WithNewScene>();
                roleInfoPanelModelView.Init(RoleModelView_WithNewScene.PanelType.FashionInfoPanel);
                DragButton.SetDragCallback(roleInfoPanelModelView.OnDragBtnDrag);
            }
            else
            {
                roleInfoPanelModelView.Show();
            }
            SetPanelAttribute(null);
            fashionAttributePanel.TweenShow();
            FashionListPanel.TweenShow();
        }