fix: 상점에서 포션을 구매했지만 데이터가 갱신되지 않는 오류 수정
This commit is contained in:
@@ -88,6 +88,21 @@ namespace TON
|
||||
}
|
||||
}
|
||||
|
||||
public void AddPotion(string type, int amount)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case "HP":
|
||||
userItem.hpPotion += amount;
|
||||
itemDataManager.UpdateHpData(userItem.hpPotion);
|
||||
break;
|
||||
case "MP":
|
||||
userItem.mpPotion += amount;
|
||||
itemDataManager.UpdateMpData(userItem.mpPotion);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void AddGold(int amount)
|
||||
{
|
||||
goldAmount += amount;
|
||||
|
||||
Reference in New Issue
Block a user