Esempio n. 1
0
 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);
     }
 }
 private void OnDestroy()
 {
     this.key                         = null;
     this.key2                        = null;
     this._itemm                      = null;
     this.SpriteButtonO               = null;
     this.SpriteButtonX               = null;
     this.SpriteStickR                = null;
     this.mDialogAnimation_Exchange   = null;
     this.mDialogAnimation_UseLimit   = null;
     this.mDialogAnimation_StoreBuy   = null;
     this.mDialogAnimation_UseConfirm = null;
     this._uiLabelX                   = null;
     this.model                       = null;
     this._uil                        = null;
     this._uis                        = 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;
     }
 }