public void ClickBuy(App.Model.Master.MShopItem mShopItem) { if (mShopItem.type == App.Model.Master.MShopItem.ShopType.money) { } else { StartCoroutine(Buy(mShopItem)); } }
public override void UpdateView(App.Model.MBase model) { mShopItem = model as App.Model.Master.MShopItem; vContentsChild.UpdateView(mShopItem.shop_content); lblName.text = vContentsChild.ContentName; lblMessage.text = mShopItem.shop_content.message; lblPrice.text = mShopItem.price.ToString(); string priceType = mShopItem.priceType; foreach (GameObject unit in units) { unit.SetActive(unit.name == priceType); } }
public IEnumerator Buy(App.Model.Master.MShopItem mShopItem) { SShop sShop = new SShop(); yield return(StartCoroutine(sShop.RequestBuy("item", mShopItem.id))); }