public static GoogleLoginScript GetInstance()
 {
     if (_instance == null)
     {
         _instance = new GoogleLoginScript();
     }
     return(_instance);
 }
    void Awake()
    {
        GoogleLoginScript.GetInstance();
#if UNITY_ANDROID
        AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
        curActivity = jc.GetStatic <AndroidJavaObject>("currentActivity");
#endif
    }
Пример #3
0
 // AWAKE
 void Awake()
 {
     instance = this;
 }