Ejemplo n.º 1
0
    public BattleEquipData(int equipId, BattlePlayer owner)
    {
        EquipId = equipId;

        Data = BattleEquipTableSettings.Get(equipId);
        if (Data == null)
        {
            Debug.LogError("BuffId: " + equipId + " not exist!");
            return;
        }
        Type     = (EquipType)Data.Type;
        Owner    = owner;
        ItemType = BattleEffectItemType.Equip;
    }
Ejemplo n.º 2
0
    private void InitEquip(int id)
    {
        if (CardId == id)
        {
            return;
        }
        CardId = id;
        BattleEquipTableSetting equip = BattleEquipTableSettings.Get(id);

        icon.Load(equip.IconID);
        labName.text   = I18N.Get(equip.Name);
        describle.text = I18N.Get(equip.Desc);
        spSpending.gameObject.SetActive(false);
    }