Синтаксис:
Используется csharp
using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
public class GPS : MonoBehaviour {
void Start () {
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) => {
if (success) print("Success");
else print("Unsuccess");
});
}
public void ShowLeaderboard()//вешаем на кнопку
{
Social.ShowLeaderboardUI();
}
}
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
public class GPS : MonoBehaviour {
void Start () {
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) => {
if (success) print("Success");
else print("Unsuccess");
});
}
public void ShowLeaderboard()//вешаем на кнопку
{
Social.ShowLeaderboardUI();
}
}
Вот настройки, которые стоят у меня (по необходимости, буду докидывать)