public void Initialize(ItemStoreModel itemStoreModel, ItemStoreManager checkUtils) { if (itemStoreModel != null) { this.mModel = itemStoreModel; this.mItemStoreCheckUtils = checkUtils; this.mLabel_Name.text = this.mModel.Name; this.mLabel_Price.text = this.mModel.Price.ToString(); this.mTexture_Icon.mainTexture = UserInterfaceItemManager.RequestItemStoreIcon(this.mModel.MstId); this.ChangeFocus(this.mButton_Positive, false); this.mAkashi.SetKeyController(null); } }
public void Initialize(int realIndex, ItemStoreModel model) { this.msterId = model.MstId; this.mItemStoreModel = model; this.mRealIndex = realIndex; this.mLabel_Name.text = model.Name; this.mLabel_Price.text = model.Price.ToString(); this.mLabel_Description.text = model.Description; this.mTexture_Icon.mainTexture = UserInterfaceItemManager.RequestItemStoreIcon(this.mItemStoreModel.MstId); if (model.Count == 0) { this.mWidgetThis.alpha = 0.45f; } else { this.mWidgetThis.alpha = 1f; } }