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