private void init_equip()
 {
     if (this.mMaterial == null)
     {
         this.mMaterial = CInstance <UIResourceCreator> .Instance.GetEquip(this.itemparent);
     }
     this.mMaterial.Init(this.mMaterialData);
     this.mMaterial.SetCountShow(false);
     this.mMaterial.ShowAniEnable(false);
 }
    public EquipOneCtrl GetEquip(Transform parent = null)
    {
        EquipOneCtrl ctrl = this.Get <EquipOneCtrl>("UIPanel/CharUI/EquipOne");

        if (parent != null)
        {
            ctrl.transform.SetParentNormal(parent);
        }
        return(ctrl);
    }
예제 #3
0
    public void Init(int index)
    {
        if (this.mEquipItem == null)
        {
            this.mEquipItem = CInstance <UIResourceCreator> .Instance.GetEquip(this.itemparent);
        }
        int num  = LocalModelManager.Instance.Equip_equip.RandomEquipExp();
        int num2 = GameLogic.Random(5, 15);

        LocalSave.EquipOne equip = new LocalSave.EquipOne {
            EquipID = num,
            Count   = num2
        };
        this.mEquipItem.Init(equip);
        this.mIndex   = index;
        this.shopdata = LocalModelManager.Instance.Shop_Shop.GetBeanById(0x65 + index);
        object[] args = new object[] { mRewards[this.mIndex] };
        this.Text_Title.text = GameLogic.Hold.Language.GetLanguageByTID("shopui_equipexp_reward", args);
        this.mGoldCtrl.SetValue(this.shopdata.Price);
    }