Skip to content

Commit 7b99e77

Browse files
committed
修复编译问题
1 parent c551428 commit 7b99e77

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Plugins/CS/GameKit.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ namespace iOSNativePlugin
1010
public static class GameKit
1111
{
1212
[DllImport("__Internal")]
13-
private static extern void GameKit_ShowGameCenterView(CompletionCallback callback);
13+
private static extern void iOSGameKit_ShowGameCenterView(CompletionCallback callback);
1414

1515
[DllImport("__Internal")]
16-
private static extern void GameKit_LoadScore(string leaderboardID, LongCallback callback);
16+
private static extern void iOSGameKit_LoadScore(string leaderboardID, LongCallback callback);
1717

1818

1919

@@ -25,7 +25,7 @@ public static class GameKit
2525
/// <param name="gameCenterViewControllerDidFinish">用户关闭GC以及GC调用失败时的回调</param>
2626
public static void ShowGameCenterView(Action gameCenterViewControllerDidFinish = null)
2727
{
28-
GameKit_ShowGameCenterView(OnScoreCallback);
28+
iOSGameKit_ShowGameCenterView(OnScoreCallback);
2929
}
3030

3131

@@ -53,7 +53,7 @@ static void OnScoreCallback()
5353
/// <param name="callback">分数回调,获取失败时返回-1</param>
5454
public static void LoadScore(string leaderboardID, Action<long> callback)
5555
{
56-
GameKit_LoadScore(leaderboardID, OnScoreCallback);
56+
iOSGameKit_LoadScore(leaderboardID, OnScoreCallback);
5757
_onScoreCallback = callback;
5858

5959
}

0 commit comments

Comments
 (0)