daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top