Search code examples
unity-game-enginegoogle-play-games

Issue with Google Play games API


I'm learning how to implement the Google Play games API and I can sign in and out without problem, but now I want to create a basic turn based game and I'm having a problem and I don't know why.

That's the problem:

enter image description here

Is the same code that Google says on its tutorial: google turn based multiplayer


Solution

  • Remove the static key word from your CreateWithInvitationScreen function and your problem should be gone. So, public static void CreateWithInvitationScreen should be changed to public void CreateWithInvitationScreen.