Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sing UnityEngine.SocialPlatforms;
- using UnityEngine.UI;
- public class Helion: MonoBehaviour {
- void Start()
- {
- GooglePlayGames.PlayGamesPlatform.Activate();
- TrySignIn();
- }
- public void TrySignIn()
- {
- if (!Social.localUser.authenticated)
- {
- Social.localUser.Authenticate((bool succes) =>
- {
- if (succes)
- {
- Debug.Log("OK");
- }
- else
- {
- Debug.Log("Something Wrong");
- }
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement