哪个类是Unity认证和Unity成就的首选

问题描述 投票:0回答:1

Unity,PlayGamesPlatform或Social中的Android身份验证和成就首选哪个类?我的意思是PlayGamesPlatform在任何情况下都用于

PlayGamesPlatform.Activate();

但后来我能做到

PlayGamesPlatform.Instance.Authenticate(SignInCallback, false);//auth
PlayGamesPlatform.Instance.IncrementAchievement(
               GPGSIds.achievement_git_gud, //achievment code
               1,//increment size
               (bool success) => {
                   callback
               });

要么

 Social.localUser.Authenticate((bool success) => {//auth
 //auth callback
 };
 Social.ReportProgress(
              GPGSIds.achievement_git_gud, //achievment code     
              1,           
              (bool success) => {
                    // handle success or failure
              });
 });

那我应该选哪个班?

c# android unity3d unity5
1个回答
0
投票

我会选择Unity提供的那个,因为它很可能更频繁地更新。在Social可用之前,PlayGamesPlatform似乎已作为插件发布。社交似乎也是一种更独立于平台的方法。虽然,如果您需要更多特定于Android的功能,看起来它们可以一起使用。 - 回答评论。

© www.soinside.com 2019 - 2024. All rights reserved.