Question by
AymanJabr · Feb 19, 2017 at 10:59 PM ·
c#unity 5programmingscreen
Google play services won't start.
I followed the steps in: https://github.com/playgameservices/play-games-plugin-for-unity
This is the code I have written, but Google play will not start when I build the game, It won't give me the loading screen, and the achievments + leaderboards won't show up. Please help.
using System.Collections; using System.Collections.Generic; using UnityEngine; using GooglePlayGames; using GooglePlayGames.BasicApi; using UnityEngine.SocialPlatforms;
public class UIManager : MonoBehaviour {
void Awake () {
PlayGamesPlatform.Activate();
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder ()
.EnableSavedGames ()
.Build ();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
Social.localUser.Authenticate((bool success) => {
});
}
void Update () {
}
public void ShowAchievemts(){
Social.ShowAchievementsUI ();
}
public void Achievemt1(){
Social.ReportProgress("CgkIgpmZ_-oeEAIQAA",100f, (bool success) => {
});
}
public void Achievemt2(){
Social.ReportProgress("CgkIgpmZ_-oeEAIQAQ",100f, (bool success) => {
});
}
public void Achievemt3(){
Social.ReportProgress("CgkIgpmZ_-oeEAIQAg",100f, (bool success) => {
});
}
public void Achievemt4(){
Social.ReportProgress("CgkIgpmZ_-oeEAIQAw",100f, (bool success) => {
});
}
public void Achievemt5(){
Social.ReportProgress("CgkIgpmZ_-oeEAIQBQ",100f, (bool success) => {
});
}
}
Comment
Same issue, game starts, my "loading" image starts and then it just sits there doing nothing. the authentication GUI never pops up. going to see if I can dump logs to the GUI