using UnityEngine;
using System.Collections;
public class GameCenterManager : MonoBehaviour
{
void Start ()
{
if (Application.platform == RuntimePlatform.IPhonePlayer) {
Social.localUser.Authenticate (success => {
if (success) {
} else {
}
});
}
}
public void ReportScore (long score, string leaderboardID)
{
if (Application.platform == RuntimePlatform.IPhonePlayer) {
if (Social.localUser.authenticated) {
Social.ReportScore (score, leaderboar
Unity接入GameCenter排行榜的实现
最新推荐文章于 2024-05-30 11:29:41 发布