Skip to content

Commit

Permalink
Merge pull request #2 from taptap/fix_variable_name
Browse files Browse the repository at this point in the history
fix variable name
  • Loading branch information
lc1006 authored Jun 26, 2024
2 parents e9be63d + 0043c22 commit 634bcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Assets/Script/GameSDKManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed class GameSDKManager
private readonly bool hasInit = false;

// 是否已通过合规认证检查
public bool HasCheckedAntiAddiction { get; private set; }
public bool hasCheckedAntiAddiction { get; private set; }

// 合规认证部分限制事件监听,用于显示对应提示 UI
private readonly List<Action<int>> restrictActionList;
Expand All @@ -44,7 +44,7 @@ private GameSDKManager()
switch (code)
{
case 500: // 玩家未受限制,可正常开始
Instance.HasCheckedAntiAddiction = true;
Instance.hasCheckedAntiAddiction = true;
UnityEngine.Debug.Log("开始游戏");
break;
Expand Down Expand Up @@ -106,7 +106,7 @@ public void InitSDK()
/// <param name="userIdentifier">用户唯一标识</param>
public void StartAntiAddiction(string userIdentifier)
{
HasCheckedAntiAddiction = false;
hasCheckedAntiAddiction = false;
AntiAddictionUIKit.StartupWithTapTap(userIdentifier);
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Script/LoginScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async void Start()
SwitchLoginState(currentToken != null);

// 本地存在用户信息且未通过合规认证时进行合规认证检查
if (currentToken != null && !GameSDKManager.Instance.HasCheckedAntiAddiction)
if (currentToken != null && !GameSDKManager.Instance.hasCheckedAntiAddiction)
{
StartAntiAddiction();
}
Expand Down

0 comments on commit 634bcc7

Please sign in to comment.