public void ConfirmToSignIn() { googlePlayObj = GameObject.Find("GooglePlay"); googlePlayScript = googlePlayObj.GetComponent <Googleplay>(); googlePlayScript.SignIn(); confirmSignIn.SetActive(false); new WaitForSeconds(2.0f); controller.PostToLeaderboard(); }
// Use this for initialization void Awake() { if (googlePlayObject == null) { googlePlayObject = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
// 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> (); } }
// 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"; } }
// Use this for initialization void Start() { gp = GameObject.Find("GooglePlay"); gpScript = gp.GetComponent <Googleplay>(); bool status = gpScript.ReturnSignInStatus(); }
public void showAchievements() { gp = GameObject.Find("GooglePlay"); gpScript = gp.GetComponent <Googleplay>(); gpScript.ShowAchievements(); }
public void showLeaderboard() { gp = GameObject.Find("GooglePlay"); gpScript = gp.GetComponent <Googleplay>(); gpScript.ShowLeaderboard(); }