뽑기 작업 중...

This commit is contained in:
Ino 2025-04-17 05:04:57 +09:00
parent 5fa439ac5a
commit f11a222c49
1 changed files with 17 additions and 1 deletions

View File

@ -22,6 +22,22 @@ public class GachaBase : MonoBehaviour
public void OnClick_Gacha(int count)
{
var sdata = ServerInfo.Ins.m_ServerData;
var useTicket = sdata.Check_ItemAmount(table_GlobalValue.Ins.Get_Int("n_GachaTicketID"), count);
if (count == 1)
{ // 티켓만 사용
if (useTicket)
{
}
}
else
{ // 티켓 혹은 캐시템 사용
if (useTicket)
{ // 티켓 먼저 사용
}
else
{ // 티켓 없으면 캐시템
}
}
}
}