Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
游戏服务统一会议(C#)_C#_Unity3d_Google Play Games - Fatal编程技术网

游戏服务统一会议(C#)

游戏服务统一会议(C#),c#,unity3d,google-play-games,C#,Unity3d,Google Play Games,我可以在我的playstore帐户上成功登录。这是我的代码,用于验证用户是否提前登录 public void Start(){ //client configuration creation PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build(); //enable debugging PlayGamesPlatform.DebugLogE

我可以在我的playstore帐户上成功登录。这是我的代码,用于验证用户是否提前登录

public void Start(){

    //client configuration creation
    PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();

    //enable debugging
    PlayGamesPlatform.DebugLogEnabled = true;

    //Initialize and activate the platform
    PlayGamesPlatform.InitializeInstance(config);
    PlayGamesPlatform.Activate ();

    //Authenticate if the user logged in earlier or its his/her first log in.
    if (Social.localUser.authenticated) {
        authStatus.text = "Welcome back : " + Social.localUser.userName;

    } else {
        authStatus.text = "Not yet Sign In";
    }
}

所以我的问题是:我上面的代码似乎不起作用,因为如果我第一次登录,然后关闭应用程序并再次打开应用程序,它仍然需要重新登录,这是不合适的,也是非常错误的

你的问题是什么?@程序员我的问题是它没有会话,先生。如果我登录,然后关闭应用程序,然后重新打开它,我仍然需要登录,这不是我想要的。事实上,我的身份验证没有work@WillyDavidJr谢谢你,先生。你可能想看看@Nico。你能指出我应该去哪里看吗,因为我一直在读它。先生。你的问题是什么?@程序员我的问题是它没有会话,先生。如果我登录,然后关闭应用程序,然后重新打开它,我仍然需要登录,这不是我想要的。事实上,我的身份验证没有work@WillyDavidJr谢谢你,先生,你可能想看看@Nico。你能指出我应该去哪里看吗?因为我已经读了很长时间了,先生。