playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 959 forks source link

PlayGamesPlatform.Instance.Authenticate doesn't exist? #3012

Open Shadowing1983 opened 3 years ago

Shadowing1983 commented 3 years ago

Getting PlayGamesPlatform.Instance.Authenticate doesn't exist. I have this at the top.

using GooglePlayGames; using UnityEngine.SocialPlatforms;

I ran the Android Setup in the menu Did the dependency check.

I'm so stuck :(

Shadowing1983 commented 3 years ago

Nevermind I figured it out lol. I had to place it inside a method.

Shadowing1983 commented 3 years ago

I can't figured out how to retrieve a sign in code? so I can use it serverside?

PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptOnce, (result) =>{

             if (result == SignInStatus.Success) {

             } else {

             }
        });