Hi! I want to add leaderboard to my game. But google play services doesn’t even call sign in function.
void Awake() {
PlayGamesPlatform.Activate();
PlayGamesPlatform.DebugLogEnabled = true;
}
void Start()
{
PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication);
}
private void ProcessAuthentication(SignInStatus status) {
if(status == SignInStatus.Success) {
Debug.Log("Success");
txt.text = "Success";
}
else {
Debug.Log("Failure");
txt.text = "Failure";
}
}
Text in editor changes to failure in editor, but on on adroid it doesn’t change the text. Why unity doen’t call this function?