Esempio n. 1
0
    // Use this for initialization


    void Start()
    {
        try{
            PlayGamesPlatform.Activate();

            if (!Social.localUser.authenticated)
            {
                Social.localUser.Authenticate((bool success) => {
                    if (success)
                    {
                        Debug.Log("SUCCEEDED");
                    }
                    else
                    {
                        Debug.Log("NOT SUCCEEDED");
                    }
                });
            }
        }catch (InvalidComObjectException e) {}
        try{
            admobScript admob = (admobScript)GameObject.Find("ServiciosGoogle").GetComponent <admobScript>();
            admob.HideBanner();
        }catch (System.Exception e) {}
        score    = false;
        change   = false;
        settings = false;
        game     = false;
        fondo    = Resources.Load <Texture2D> ("Texture/Background/fondo" + Random.Range(0, 9));
        cogerTexturas();
        GameObject.Find("ServiciosGoogle").GetComponent <admobScript>().HideBanner();
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     puntuation = GameObject.Find("Puntuation").GetComponent <GUIText> ();
     try{
         admob = (admobScript)GameObject.Find("ServiciosGoogle").GetComponent <admobScript>();
         admob.ShowBanner();
     }catch (System.Exception e) {
     }
     puntuation.text        = " ";
     puntuation.pixelOffset = cm.ViewportToWorldPoint(new Vector2(0.1f, 0.4f));
     puntuation.fontSize    = Mathf.Min(Mathf.FloorToInt(Screen.width * fontSize / 1000), Mathf.FloorToInt(Screen.height * fontSize / 1000));
     sonar     = true;
     rapido    = true;
     masRapido = true;
     cogerTodo();
     obtenerAnimal();
     parado  = true;
     mostrar = true;
     pj      = false;
     timeAux = 0;
     time    = 0;
     inTouch = Resources.Load <Texture2D> ("Texture/clickTouch");
     fuego   = Resources.Load <Texture2D> ("Texture/fuego");
     animal  = (GameObject)Instantiate(animal, cm.ViewportToWorldPoint(new Vector3(0.1f, 0.5f, 10)), Quaternion.identity);
     animal.GetComponent <PlayerMovementScript> ().enabled = false;
     InvokeRepeating("aumentarTiempo", 0f, 1f);
     InvokeRepeating("generarObjetos", 0f, 1f);
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     try{
         admobScript admob = (admobScript)GameObject.Find("ServiciosGoogle").GetComponent <admobScript>();
         admob.HideBanner();
     }catch (System.Exception e) {}
     back  = false;
     fondo = Resources.Load <Texture2D> ("Texture/Background/fondo" + Random.Range(0, 9));
     cogerTexturas();
     if (PlayerPrefs.GetString("Music") == "off")
     {
         musicVol = musicSkin;
     }
     else
     {
         musicVol = effectsSkin;
     }
     if (PlayerPrefs.GetString("Effect") == "off")
     {
         effectVol = musicSkin;
     }
     else
     {
         effectVol = effectsSkin;
     }
     if (PlayerPrefs.GetString("Publicity") == "eliminate")
     {
         ads = musicSkin;
     }
     else
     {
         ads = effectsSkin;
     }
 }
Esempio n. 4
0
 void Start()
 {
     try{
         admobScript admob = (admobScript)GameObject.Find("ServiciosGoogle").GetComponent <admobScript>();
         admob.HideBanner();
     }catch (System.Exception e) {}
     back      = false;
     pos       = 0;
     seleccion = "gatos";
     fondo     = Resources.Load <Texture2D> ("Texture/Background/fondo" + Random.Range(0, 9));
     cogerSkins();
     cogerSprite();
     comprobarTipo();
     aud = Resources.Load <AudioClip> ("Sounds/buttomSound");
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     try{
         admobScript admob = (admobScript)GameObject.Find("ServiciosGoogle").GetComponent <admobScript>();
         admob.HideBanner();
         admob.ShowInterstitial();
     }catch (System.Exception e) {
     }
     puntuation             = PlayerPrefs.GetString("Puntuacion");
     back                   = false;
     replay                 = false;
     style                  = new GUIStyle();
     style.font             = Resources.Load <Font> ("Labtop Down Under");
     style.fontStyle        = FontStyle.Bold;
     style.fontSize         = Mathf.Min(Mathf.FloorToInt(Screen.width * 250 / 1000), Mathf.FloorToInt(Screen.height * 250 / 1000));
     style.normal.textColor = Color.green;
     fondo                  = Resources.Load <Texture2D> ("Texture/Background/fondo" + Random.Range(0, 9));
     cogerTexturas();
 }
Esempio n. 6
0
	void Start()
	{
		scoreX = Screen.width * 0.36f;
		scoreY = Screen.height * 0.62f;
		scoreWidth = Screen.width * 0.29f;
		scoreHeight = Screen.height * 0.17f;

		banner = AdManager.banner;

	
			Debug.Log ("Showing banner");
			banner.HideBanner();
			banner.ShowBanner ();
		

		UserScore= PlayerPrefs.GetInt ("score");

		UnlockAddon(UserScore);
	


	}
Esempio n. 7
0
	// Use this for initialization
	void Start () {

		banner = setBanner;
	
	}