internal void SubmitScore(string leaderboardId, long score)
 {
     Misc.CheckNotNull(leaderboardId);
     Logger.d("Native Submitting score: " + score + " for lb " + leaderboardId);
     // Note, we pass empty-string as the metadata - this is ignored by the native SDK.
     C.LeaderboardManager_SubmitScore(mServices.AsHandle(), leaderboardId, (ulong)score, "");
 }
예제 #2
0
        public IntPtr GetApiClient()
        {
#if UNITY_ANDROID
            IntPtr ptr =
                Cwrapper.InternalHooks.InternalHooks_GetApiClient(mServices.AsHandle());

            return(ptr);
#else
            Debug.Log("GoogleAPIClient is not available on this platform");
            return(IntPtr.Zero);
#endif
        }
예제 #3
0
 private static AndroidJavaObject GetApiClient(GameServices services)
 {
     return(JavaUtils.JavaObjectFromPointer(C.InternalHooks_GetApiClient(services.AsHandle())));
 }