mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #12251 from sersoong/2.1-test
update GKScore init function
This commit is contained in:
@@ -109,7 +109,7 @@ Error GameCenter::post_score(Variant p_score) {
|
||||
String category = params["category"];
|
||||
|
||||
NSString *cat_str = [[[NSString alloc] initWithUTF8String:category.utf8().get_data()] autorelease];
|
||||
GKScore *reporter = [[[GKScore alloc] initWithCategory:cat_str] autorelease];
|
||||
GKScore *reporter = [[[GKScore alloc] initWithLeaderboardIdentifier:cat_str] autorelease];
|
||||
reporter.value = score;
|
||||
|
||||
ERR_FAIL_COND_V([GKScore respondsToSelector:@selector(reportScores)], ERR_UNAVAILABLE);
|
||||
|
||||
Reference in New Issue
Block a user