我正在try 在我的Unity Android项目中添加Google Play服务.
我的问题是:
- 帐户A:登录状态成功且未显示欢迎弹出窗口
- 帐户B:登录状态已取消,未登录.
是因为内部测试还是什么?
统一版:2019.4.16f1
gpgs插件verison:0.11.01
这是我的代码:
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;
}
}