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