protected override void _submitScore(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard to, int score, string payload)
 {
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
         ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "submitScore", provider.ToString(), to.toJSONObject().ToString(), score, payload);
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
 protected override void _getScores(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard from, bool fromStart, string payload)
 {
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
         ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "getScores", provider.ToString(), from.toJSONObject().ToString(), fromStart, payload);
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
 protected override void _showLeaderboards(Soomla.Profile.Provider provider, string payload)
 {
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass unityActivityClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
         using (AndroidJavaObject unityActivity = unityActivityClass.GetStatic <AndroidJavaObject>("currentActivity")) {
             using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
                 ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "showLeaderboards", provider.ToString(), unityActivity, payload);
             }
         }
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
 protected override void _reportScore(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard where, int score, string payload)
 {
     Soomla.SoomlaUtils.LogDebug(TAG, "Game services isn't supported in Android yet.");
 }
 protected override void _getScores(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard from, bool fromStart, string payload)
 {
     Soomla.SoomlaUtils.LogDebug(TAG, "Game services isn't supported in Android yet.");
 }
 protected override void _getLeaderboards(Soomla.Profile.Provider provider, string payload)
 {
     Soomla.SoomlaUtils.LogDebug(TAG, "Game services isn't supported in Android yet.");
 }
Ejemplo n.º 7
0
 protected override void _reportScore(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard where, int score, string payload)
 {
     soomlaProfile_ReportScore(provider.ToString(), where.toJSONObject().ToString(), score, payload);
 }
Ejemplo n.º 8
0
 protected override void _getScores(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard from, bool fromStart, string payload)
 {
     soomlaProfile_GetScores(provider.ToString(), from.toJSONObject().ToString(), fromStart, payload);
 }
Ejemplo n.º 9
0
 protected override void _getLeaderboards(Soomla.Profile.Provider provider, string payload)
 {
     soomlaProfile_GetLeaderboards(provider.ToString(), payload);
 }
Ejemplo n.º 10
0
 protected override void _submitScore(Soomla.Profile.Provider provider, Soomla.Profile.Leaderboard to, int score, string payload)
 {
     soomlaProfile_SubmitScore(provider.ToString(), to.toJSONObject().ToString(), score, payload);
 }