private void Awake()
    {
        int nveces = PlayerPrefs.GetInt("nPuntajes");

        PlayerPrefs.SetInt("nPuntajes", 1 + nveces);

        this.desplegableNivel = GameObject.FindGameObjectWithTag("desplegablePuntos").GetComponent <Dropdown>();
        this.cargarDatos      = new guardarCargarRecords();

        //obteniendo referencia a los paneles
        this.panelFacil    = GameObject.FindGameObjectWithTag("panelFacil");
        this.panelModerado = GameObject.FindGameObjectWithTag("panelModerado");
        this.panelDificil  = GameObject.FindGameObjectWithTag("panelDificil");
    }
    void Start()
    {
        this.guardarCargarDatos = gameObject.GetComponent <guardarCargarRecords>();
        this.indice             = this.imagenesPatronesGO.indice;
        //Debug.Log(this.imagenesPatronesGO.indice+" :indice: "+this.indice);
        if (this.indice + 1 >= this.imagenesPatronesGO.nroImagenes)
        {
            this.btnSiguienteScena.SetActive(false);
        }

        this.movimientos.text = ": 00";
        inicializarImagen();
        inicializandoArrays();
        this.movimientoSonido = this.gameObject.GetComponent <AudioSource>();

        //accedemos al segundo audio source del objeto
        //this.musicaFondo = this.gameObject.GetComponents<AudioSource>()[1];
        this.inicialTiempo          = DateTime.Now;
        this.slideProgreso.minValue = 0f;
        this.slideProgreso.maxValue = this.sizeCol * this.sizeRow;

        this.establecerMusica2();
        this.establecerSonido2();
    }
예제 #3
0
 // Use this for initialization
 private void Awake()
 {
     this.cargarDatos = GameObject.FindGameObjectWithTag("GameController").GetComponent <guardarCargarRecords>();
 }