Esempio n. 1
0
 public void ConfirmToSignIn()
 {
     googlePlayObj    = GameObject.Find("GooglePlay");
     googlePlayScript = googlePlayObj.GetComponent <Googleplay>();
     googlePlayScript.SignIn();
     confirmSignIn.SetActive(false);
     new WaitForSeconds(2.0f);
     controller.PostToLeaderboard();
 }
Esempio n. 2
0
 // Use this for initialization
 void Awake()
 {
     if (googlePlayObject == null)
     {
         googlePlayObject = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     if (Advertisement.isSupported)
     {
         Advertisement.allowPrecache = true;
         Advertisement.Initialize(appID, false);
     }
     googlePlayObj = GameObject.Find("GooglePlay");
     if (googlePlayObj != null)
     {
         googlePlayScript = googlePlayObj.GetComponent <Googleplay> ();
     }
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        gp       = GameObject.Find("GooglePlay");
        gpScript = gp.GetComponent <Googleplay>();
        bool status = gpScript.ReturnSignInStatus();

        signButtonText = signOut.transform.FindChild("Text").GetComponent <Text>();
        if (status == true)
        {
            signButtonText.text = "Signed Out";
        }
        else
        {
            signButtonText.text = "Signed In";
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     gp       = GameObject.Find("GooglePlay");
     gpScript = gp.GetComponent <Googleplay>();
     bool status = gpScript.ReturnSignInStatus();
 }
Esempio n. 6
0
 public void showAchievements()
 {
     gp       = GameObject.Find("GooglePlay");
     gpScript = gp.GetComponent <Googleplay>();
     gpScript.ShowAchievements();
 }
Esempio n. 7
0
 public void showLeaderboard()
 {
     gp       = GameObject.Find("GooglePlay");
     gpScript = gp.GetComponent <Googleplay>();
     gpScript.ShowLeaderboard();
 }