コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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.");
 }
コード例 #5
0
 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.");
 }
コード例 #6
0
 protected override void _getLeaderboards(Soomla.Profile.Provider provider, string payload)
 {
     Soomla.SoomlaUtils.LogDebug(TAG, "Game services isn't supported in Android yet.");
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #9
0
 protected override void _getLeaderboards(Soomla.Profile.Provider provider, string payload)
 {
     soomlaProfile_GetLeaderboards(provider.ToString(), payload);
 }
コード例 #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);
 }