Commit 2d16bd22 王帅

readme

1 个父辈 3c552857
...@@ -106,6 +106,31 @@ public class AASDKDemoScript: MonoBehaviour ...@@ -106,6 +106,31 @@ public class AASDKDemoScript: MonoBehaviour
antiAddictionSDK.ZAASDKCompleted += HandleZAASDKCompleted; antiAddictionSDK.ZAASDKCompleted += HandleZAASDKCompleted;
} }
// Obtain the real-name authentication status of the user
// 0: uncertified
// 1:authenticated
public void IsAuthenticated()
{
statusText.text = "IsAuthenticated";
if (antiAddictionSDK != null)
{
statusText.text = antiAddictionSDK.IsAuthenticated()+"";
}
}
// Obtain the authentication result of the current user
// 0 uncertified
// 1 adult
// 2 underage
public void GetUserAgeGroup()
{
statusText.text = "GetUserAgeGroup";
if (antiAddictionSDK != null)
{
statusText.text = antiAddictionSDK.AgeGroupOfCurrentUser()+"";
}
}
// leftTimeOfCurrentUser = -1 : no time limited // leftTimeOfCurrentUser = -1 : no time limited
// leftTimeOfCurrentUser more than the 0 : left time of current user // leftTimeOfCurrentUser more than the 0 : left time of current user
public void LeftTimeOfCurrentUser() public void LeftTimeOfCurrentUser()
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!