아이템 구매시 정보 업데이트
This commit is contained in:
parent
a29f1ff419
commit
1c64863a1a
|
|
@ -28,10 +28,13 @@ public class ShopTypeitemPrefab : MonoBehaviour
|
|||
BuyShopItemResp resp = new BuyShopItemResp();
|
||||
resp.Request((data) =>
|
||||
{
|
||||
Debug.Log("아이템 구매 성공");
|
||||
Statics.gold = data.gold;
|
||||
Statics.cash = data.cash;
|
||||
GameCtrl.Instance.MoneyUpdate();
|
||||
Statics.itemManager.box.add(data.deck_unit);
|
||||
Statics.itemManager.box.add(data.equipment);
|
||||
Statics.itemManager.box.add(data.consumableItem);
|
||||
Statics.itemManager.box.add(data.etcItem);
|
||||
}, shopItemData.index);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue