Browse Source

订阅

master
azazaz123456 2 days ago
parent
commit
09f2a39789
2 changed files with 12 additions and 11 deletions
  1. +11
    -10
      Assets/Scripts/UI/UIMainModel.cs
  2. +1
    -1
      Assets/StreamingAssets/build_info

+ 11
- 10
Assets/Scripts/UI/UIMainModel.cs View File

@@ -84,16 +84,17 @@ public class UIMainModel : UIBase
}
else
{
if (IAPManager.Instance.IsSubscribed())
{
IsPlaying = true;
}
else
{
int freeNum= PlayerPrefs.GetInt("FreeNum_" + GameData.Instance.appleUserId, 3);
SubDetailsText.text = $"<color=#1e92ff>{freeNum} free trals available and all types</color> of products can be used after subscription";
dingyueBg.SetActive(true);
}
IsPlaying = true;
//if (IAPManager.Instance.IsSubscribed())
//{
// IsPlaying = true;
//}
//else
//{
// int freeNum= PlayerPrefs.GetInt("FreeNum_" + GameData.Instance.appleUserId, 3);
// SubDetailsText.text = $"<color=#1e92ff>{freeNum} free trals available and all types</color> of products can be used after subscription";
// dingyueBg.SetActive(true);
//}
}
}



+ 1
- 1
Assets/StreamingAssets/build_info View File

@@ -1 +1 @@
Build from CHINAMI-5S19PK6 at 2025/7/31 17:47:37
Build from CHINAMI-5S19PK6 at 2025/8/1 14:26:26

Loading…
Cancel
Save