Beispiel #1
0
 public void ClickBuy(App.Model.Master.MShopItem mShopItem)
 {
     if (mShopItem.type == App.Model.Master.MShopItem.ShopType.money)
     {
     }
     else
     {
         StartCoroutine(Buy(mShopItem));
     }
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        public IEnumerator Buy(App.Model.Master.MShopItem mShopItem)
        {
            SShop sShop = new SShop();

            yield return(StartCoroutine(sShop.RequestBuy("item", mShopItem.id)));
        }