Exemplo n.º 1
0
    void RuneBtnClickHandler(EM_RUNE_POINT runeIdx)
    {
        ObjectCard cardInfo = UI_HeroInfoManager._instance.GetCurCard();

        if (cardInfo == null)
        {
            LogManager.LogError("HeroInfoManager GetCurCard返回为null");
            return;
        }

        //没装备着符文;
        if (cardInfo.GetHeroData().IsRuneNull(runeIdx))
        {
            HRCMgr.ShowUI(runeIdx);
            RunOnBack();
            HideRuneDetailUI();
        }
        else
        {
            mRunePoint = runeIdx;
            ItemEquip itemE = cardInfo.GetHeroData().GetRuneItemInfo(runeIdx);
            ShowRuneDetailUI(itemE);
        }

        HideRunePropUI();
    }
Exemplo n.º 2
0
 void OnChangeBtnClick()
 {
     HideRuneDetailUI();
     HRCMgr.ShowUI(mRunePoint);
     RunOnBack();
 }