Unity接入GameCenter排行榜的实现

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,iOS,苹果,开发者,GameCenter,Unity3D)