구매 방어 코드

This commit is contained in:
Ino 2025-09-18 07:37:40 +09:00
parent e59851705d
commit 86ff38cad1
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: be474b00c7134174b88a1f4dd1f5b3a8
guid: e6c55b600f8006a44921a15d2773fe75
labels:
- gvh
- gvh_version-9.5.0

View File

@ -1 +1 @@
11
12

View File

@ -417,6 +417,7 @@ public class ProductSlot : CardBase
public void ClickButton()
{
rewardGranted = false;
GameManager.Sound.PlaySFX(ESFXType.Button_Hit);
if (CheckConditionForState() == false)
@ -715,8 +716,11 @@ public class ProductSlot : CardBase
return text;
}
bool rewardGranted = false;
private void OnCompletedRewardedAd(bool isCompleted, string name)
{
if (rewardGranted) return;
rewardGranted = true;
if (name == this.name)
{
if (isCompleted)