Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. sing UnityEngine.SocialPlatforms;
  2. using UnityEngine.UI;
  3.  
  4. public class Helion: MonoBehaviour {
  5.  
  6. void Start()
  7. {
  8. GooglePlayGames.PlayGamesPlatform.Activate();
  9. TrySignIn();
  10. }
  11.  
  12. public void TrySignIn()
  13. {
  14. if (!Social.localUser.authenticated)
  15. {
  16. Social.localUser.Authenticate((bool succes) =>
  17. {
  18. if (succes)
  19. {
  20. Debug.Log("OK");
  21. }
  22. else
  23. {
  24. Debug.Log("Something Wrong");
  25. }
  26. });
  27. }
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement