public static void GetRanking(string gameObjectName, string callbackMethodName, string rankingId, RankingRange type, RankingCursorOrigin origin, int cursor, int limit){ #if UNITY_ANDROID AndroidJavaClass nakamapClass = new AndroidJavaClass("com.kayac.lobi.sdk.ranking.unity.LobiRankingBridge"); nakamapClass.CallStatic("getRanking", gameObjectName, callbackMethodName, "id", rankingId, (int)type, (int)origin, cursor, limit); #endif #if ((UNITY_IOS || UNITY_IPHONE) && ! UNITY_EDITOR) byte[] cGameObjectName = System.Text.Encoding.UTF8.GetBytes(gameObjectName); byte[] cCallbackMethodName = System.Text.Encoding.UTF8.GetBytes(callbackMethodName); byte[] cRankingId = System.Text.Encoding.UTF8.GetBytes(rankingId); LobiRanking_get_ranking_(cGameObjectName, cGameObjectName.Length, cCallbackMethodName, cCallbackMethodName.Length, cRankingId, cRankingId.Length, (int)type, (int)origin, cursor, limit); #endif }
public static void GetRanking(string gameObjectName, string callbackMethodName, string rankingId, RankingRange type, RankingCursorOrigin origin, int cursor, int limit) { #if UNITY_ANDROID AndroidJavaClass nakamapClass = new AndroidJavaClass("com.kayac.lobi.sdk.ranking.unity.LobiRankingBridge"); nakamapClass.CallStatic("getRanking", gameObjectName, callbackMethodName, "id", rankingId, (int)type, (int)origin, cursor, limit); #endif #if ((UNITY_IOS || UNITY_IPHONE) && !UNITY_EDITOR) byte[] cGameObjectName = System.Text.Encoding.UTF8.GetBytes(gameObjectName); byte[] cCallbackMethodName = System.Text.Encoding.UTF8.GetBytes(callbackMethodName); byte[] cRankingId = System.Text.Encoding.UTF8.GetBytes(rankingId); LobiRanking_get_ranking_(cGameObjectName, cGameObjectName.Length, cCallbackMethodName, cCallbackMethodName.Length, cRankingId, cRankingId.Length, (int)type, (int)origin, cursor, limit); #endif }