我正在尝试将 Google Play 服务添加到我的 Unity Android 项目中。我已经向项目实现了 Google Play 服务插件,并填写了所有凭据。我在开发者控制台上拥有两个不同的内部测试帐户。
这是我的问题:
- 帐户A:SignInStatus 成功,没有显示欢迎弹出消息。 - 帐户B:SignInStatus 取消并未登录。
这是因为内部测试还是其他原因?
Unity 版本:2019.4.16f1
gpgs 插件版本:0.11.01
以下是我的代码: 参考:https://github.com/playgameservices/play-games-plugin-for-unity
这是我的问题:
- 帐户A:SignInStatus 成功,没有显示欢迎弹出消息。 - 帐户B:SignInStatus 取消并未登录。
这是因为内部测试还是其他原因?
Unity 版本:2019.4.16f1
gpgs 插件版本:0.11.01
以下是我的代码: 参考:https://github.com/playgameservices/play-games-plugin-for-unity
using GooglePlayGames;
private bool Authenticated;
public void Start() {
PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication);
}
internal void ProcessAuthentication(SignInStatus status) {
if (status == SignInStatus.Success) {
// Continue with Play Games Services
Authenticated = true;
} else {
// Disable your integration with Play Games Services or show a login button
// to ask users to sign-in. Clicking it should call
// PlayGamesPlatform.Instance.ManuallyAuthenticate(ProcessAuthentication).
Authenticated = false;
}
}
Authenticate()
成功时的成功消息吗?你可以使用Debug.Log()
自己指定它。 - isakgo_