Example #1
0
 public void ConfirmToSignIn()
 {
     googlePlayObj    = GameObject.Find("GooglePlay");
     googlePlayScript = googlePlayObj.GetComponent <Googleplay>();
     googlePlayScript.SignIn();
     confirmSignIn.SetActive(false);
     new WaitForSeconds(2.0f);
     controller.PostToLeaderboard();
 }
Example #2
0
    public void signInOrOut()
    {
        gp       = GameObject.Find("GooglePlay");
        gpScript = gp.GetComponent <Googleplay>();
        bool status = gpScript.ReturnSignInStatus();

        signButtonText = signOut.transform.FindChild("Text").GetComponent <Text>();
        if (status == true)
        {
            gpScript.SignOut();
            signButtonText.text = "Signed Out";
        }
        else
        {
            gpScript.SignIn();
            signButtonText.text = "Signed In";
        }
    }