- Home /
I want to have a function run when a user sends a GameCenter challenge
I'm using Apple's default GameCenter screens to show players their achievements, leaderboards, etc. and to let them send challenges to other players but I want the game to recognize when the current player issues another player a challenge (ex.
void OnChallengeIssuedByPlayer()
{
//Do something
}
but I don't know where I would call OnChallengeIssuedByPlayer from.)
I've been using the Prime31 GameCenter plugin to work with GameCenter so far, but as far as I can tell it doesn't have a way of doing this.
just FYI, maybe ask on prime31's new forum. you usually get an answer pretty fast
Thanks. Adding this here in case anyone else needs it, but according to the answer I got from the Prime31 forums there's no way to do it, at least not through the plugin, I don't know about otherwise
Your answer
![](https://koobas.hobune.stream/wayback/20220613101555im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with XCode iOS GameCenter EXC_BAD_ACCESS crash bug 1 Answer
How do I enable the Facebook Like button in iOS 6 GameCenter? 3 Answers
Profile photos for players in iOS Game Center 0 Answers
this game is not recognized 0 Answers
[GameCenter][PlayGames] Leaderboard Daily/Weekly reseting scores? 0 Answers