아이템 구매시 정보 업데이트

This commit is contained in:
김판돌 2024-03-07 21:20:09 +09:00
parent a29f1ff419
commit 1c64863a1a
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}