private void OnEnable()
 {
     MtaManager.TrackBeginPage(MtaType.SellItemWindow);
     commonWindow = WindowManager.Instance.GetWindow<UIItemCommonWindow>();
     commonWindow.ShowSelMask(false);
     commonWindow.NormalClicked = OnNormalClick;
     RefreshSel();
     InstallHandlers();
     sellLis.GetComponent<UIButton>().isEnabled = false;
 }
 private void OnEnable()
 {
     Init();
     commonWindow = WindowManager.Instance.GetWindow<UIItemCommonWindow>();
     commonWindow.NormalClicked = OnNormalClicked;
     var selected = commonWindow.MainInfo != null;
     commonWindow.ShowSelMask(selected);
     RefreshEvolve(commonWindow.GetInfo(commonWindow.CurSelPos));
     InstallHandlers();
 }
    // Use this for initialization
    private void Awake()
    {
        NGUITools.SetActive(PropertyUpdater.gameObject, true);
        NGUITools.SetActive(ItemBase.gameObject, true);
        var initSkill = transform.Find("Skill/InitSkill");
        skillInitTitle = initSkill.Find("Title").GetComponent<UILabel>();
        skillInitDesc = initSkill.Find("Desc").GetComponent<UILabel>();
        
        var randSkill = transform.Find("Skill/RandSkill");
        skillRandTitle = randSkill.Find("Title").GetComponent<UILabel>();
        skillRandDesc = randSkill.Find("Desc").GetComponent<UILabel>();

        var matchInfo = transform.Find("Match/MatchInfo");
        matchTitle = matchInfo.Find("Title").GetComponent<UILabel>();
        matchDesc = matchInfo.Find("Desc").GetComponent<UILabel>();
        commonWindow = WindowManager.Instance.GetWindow<UIItemCommonWindow>();
    }
 private void OnEnable()
 {
     MtaManager.TrackBeginPage(MtaType.LevelUpItemWindow);
     LevelUpEffectControl.Stop();
     commonWindow = WindowManager.Instance.GetWindow<UIItemCommonWindow>();
     commonWindow.NormalClicked = OnNormalClicked;
     var selected = MainInfo != null;
     NGUITools.SetActive(ItemBase.gameObject, selected);
     if (MainInfo == null)
     {
         return;
     }
     commonWindow.ShowSelMask(true);
     Refresh();
     ItemHelper.InstallLongPress(ItemBase.gameObject);
     GetMaterialPosList();
     RefreshCurScreen();
     InstallHandlers();
 }