Я сделал топ рейтинг в unity вот код
using UnityEngine;
using System.Collections;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;
public class test : MonoBehaviour
{
void Start (){
PlayGamesPlatform.Activate();
}
void vhod (){
Social.localUser.Authenticate((bool success) => {
});
}
void dostijenie() {
Social.ReportProgress("CgkI2pnKuuEFEAI---", 100.0f, (bool succes) => {
});
}
void opublik(){
Social.ReportScore(12345, "CgkI2pnKuuEFEAI---", (bool succes) => {
});
}
}
А программа выдаёт ошибку
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.GameObjectInspector.OnDisable () (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.AssetDatabase:Refresh()
GooglePlayGames.Editor.GPGSUpgrader:.cctor() (at Assets/GooglePlayGames/Editor/GPGSUpgrader.cs:102)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
Я новичок в Unity! Прошу дать объяснение!
(Я гуглил)