Пример #1
0
    void confirmImprove_exp()
    {
        if (currentAddingFigure == 0)
        {
            return;
        }
        bool flag = true;

        for (int i = 0; i < AllSlots.Length; i++)
        {
            SingleSlot slot = AllSlots[i];
            if (slot.isEmpty || slot.isLocked)
            {
                continue;
            }
            bool _flag = slot.consumeContentInSlot();
            if (!_flag)
            {
                flag = false; continue;
            }
        }
        if (!flag)
        {
            return;
        }
        SDDataManager.Instance.addExpToHeroByHashcode(heroDetail.Hashcode, currentAddingFigure);
        refreshHeroData_exp();
        //
        heroDetail.initHeroDetailPanel(heroDetail.Hashcode);
    }
Пример #2
0
    public void EquipBelowBtn_Tapped()
    {
        GDEEquipmentData e
            = SDDataManager.Instance.getEquipmentByHashcode(currentEquipHashcode);
        int ownerHashcode = e.OwnerHashcode;

        if (ownerHashcode == heroDetail.Hashcode)//解除装备
        {
            SDDataManager.Instance.disrobeEquipment(heroDetail.Hashcode, equipPos, isSecondJewelryPos);
            heroDetail.initHeroDetailPanel(heroDetail.Hashcode);
            refreshSelectedEquipmentDetail(currentEquipHashcode);
        }
        else if (ownerHashcode > 0)//已被其他角色装备
        {
        }
        else//装备
        {
            SDDataManager.Instance.dressEquipment
                (heroDetail.Hashcode, currentEquipHashcode, isSecondJewelryPos);
            heroDetail.initHeroDetailPanel(heroDetail.Hashcode);
            refreshSelectedEquipmentDetail(currentEquipHashcode);
        }
    }
Пример #3
0
 public override void whenOpenThisPanel()
 {
     base.whenOpenThisPanel();
     if (transform.localScale == Vector3.zero || !gameObject.activeSelf)
     {
         UIEffectManager.Instance.showAnimFadeIn(transform);
     }
     homeScene.CurrentSubMenuType = HomeScene.HomeSceneSubMenu.HeroDetails;
     //
     detail.gameObject.SetActive(true);
     detail.initHeroDetailPanel(currentHeroHashcode);
     //
     _currentRDSubType = RoleDetailSubType.end;
     history.Clear();
     BtnToHeroDetail();
 }