void Start () {
		if (Tracker.T () != null)
			Tracker.T ().Zone("Escena3.2.2");

		this.varHUD = GameObject.Find ("HUD").GetComponent<variablesHUD> ();
		this.varHUD.aumentaCortesia (10);
		this.zorrilla = GameObject.Find ("Zorrilla");
		this.lucrecia = GameObject.Find ("Lucrecia");
		this.lucrecia1 = GameObject.Find ("Lucrecia_1");
		this.lucrecia.SetActive(false);
		this.control = GameObject.Find ("ControladorEscena").GetComponent<controladorEscena> ();
		if (VariablesGenerales.Instance.getTareaEspecialClientes ())
			this.control.marcarTareaCompleta (0);
		else
			this.control.marcarTareaFallida (0);
		
		this.control.marcarTareaCompleta (1);
		this.control.marcarTareaCompleta (2);
		this.control.marcarTareaCompleta (3);

		if (VariablesGenerales.Instance.getTareaEspecialDescubrirRuidos ())
			this.control.marcarTareaCompleta (4, true, true);
		else
			this.control.marcarTareaFallida (4);
	}
Exemple #2
0
    void Start()
    {
        this.control    = GameObject.Find("ControladorEscena").GetComponent <controladorEscena> ();
        this.varHUD     = GameObject.Find("HUD").GetComponent <variablesHUD> ();
        this.botonPause = GameObject.Find("BotonPause").GetComponent <Button> ();
        this.cofre      = GameObject.Find("Cofre").GetComponent <BoxCollider2D> ();

        this.tutorialCaminar  = GameObject.Find("TutoCaminar");
        this.tutorialCofre    = GameObject.Find("TutoCofre");
        this.tutorialLucrecia = GameObject.Find("TutoLucrecia");
        this.flechaDinero     = GameObject.Find("FlechaDinero").GetComponent <Image>();
        this.flechaHonor      = GameObject.Find("FlechaHonor").GetComponent <Image>();
        this.flechaAgenda     = GameObject.Find("FlechaAgenda").GetComponent <Image>();

        //Hasta que no acabe el tutorial de caminar no habilitamos el cofre.
        this.cofre.enabled = false;

        this.tutorialCaminar.SetActive(false);
        this.tutorialCofre.SetActive(false);
        this.tutorialLucrecia.SetActive(false);
        this.flechaDinero.enabled = false;
        this.flechaHonor.enabled  = false;
        this.flechaAgenda.enabled = false;

        this.zorrilla  = GameObject.Find("Zorrilla.");
        this.zorrilla1 = GameObject.Find("Zorrilla");
        this.zorrilla1.SetActive(false);
    }
Exemple #3
0
    void Start()
    {
        this.varHUD = GameObject.Find("HUD").GetComponent <variablesHUD> ();
        this.varHUD.aumentaCortesia(10);
        this.zorrilla  = GameObject.Find("Zorrilla");
        this.lucrecia  = GameObject.Find("Lucrecia");
        this.lucrecia1 = GameObject.Find("Lucrecia_1");
        this.lucrecia.SetActive(false);
        this.control = GameObject.Find("ControladorEscena").GetComponent <controladorEscena> ();
        if (VariablesGenerales.Instance.getTareaEspecialClientes())
        {
            this.control.marcarTareaCompleta(0);
        }
        else
        {
            this.control.marcarTareaFallida(0);
        }

        this.control.marcarTareaCompleta(1);
        this.control.marcarTareaCompleta(2);
        this.control.marcarTareaCompleta(3);

        if (VariablesGenerales.Instance.getTareaEspecialDescubrirRuidos())
        {
            this.control.marcarTareaCompleta(4, true, true);
        }
        else
        {
            this.control.marcarTareaFallida(4);
        }
    }
	void Start () {
		this.control = GameObject.Find ("ControladorEscena").GetComponent<controladorEscena> ();
		this.varHUD = GameObject.Find ("HUD").GetComponent<variablesHUD> ();
		this.botonPause = GameObject.Find ("BotonPause").GetComponent<Button> ();
		this.cofre = GameObject.Find ("Cofre").GetComponent<BoxCollider2D> ();

		this.tutorialCaminar = GameObject.Find ("TutoCaminar");
		this.tutorialCofre = GameObject.Find ("TutoCofre");
		this.tutorialLucrecia = GameObject.Find ("TutoLucrecia");
		this.flechaDinero = GameObject.Find ("FlechaDinero").GetComponent<Image>();
		this.flechaHonor = GameObject.Find ("FlechaHonor").GetComponent<Image>();
		this.flechaAgenda = GameObject.Find ("FlechaAgenda").GetComponent<Image>();

		//Hasta que no acabe el tutorial de caminar no habilitamos el cofre.
		this.cofre.enabled = false;

		this.tutorialCaminar.SetActive (false);
		this.tutorialCofre.SetActive (false);
		this.tutorialLucrecia.SetActive (false);
		this.flechaDinero.enabled = false;
		this.flechaHonor.enabled = false;
		this.flechaAgenda.enabled = false;

		this.zorrilla = GameObject.Find ("Zorrilla.");
		this.zorrilla1 = GameObject.Find ("Zorrilla");
		this.zorrilla1.SetActive (false);
	}
	void Start () {
		GameObject.Find("Claudio").SetActive(VariablesGenerales.Instance.getApareceClaudio ());
		this.varHUD = GameObject.Find ("HUD").GetComponent<variablesHUD> ();
		this.varHUD.aumentaCortesia (10);
		this.control = this.gameObject.GetComponent<controladorEscena> ();
		this.control.marcarTareaCompleta (0);	//Completada en la escena 4.
		this.control.marcarTareaCompleta (1);	//Completada en la escena 4.
		this.control.marcarTareaCompleta (2);	//Completada en la escena 4.2.
		this.control.marcarTareaCompleta (3, true, true);	//Completada en el minijuego Duelo.
	}
Exemple #6
0
 void Start()
 {
     this.varHUD = GameObject.Find("HUD").GetComponent <variablesHUD> ();
     this.varHUD.aumentaCortesia(10);
     this.control = this.gameObject.GetComponent <controladorEscena> ();
     GameObject.Find("Claudio").SetActive(VariablesGenerales.Instance.getApareceClaudio());
     this.control.marcarTareaCompleta(0);             //Completada en la escena 4.
     this.control.marcarTareaCompleta(1);             //Completada en la escena 4.
     this.control.marcarTareaCompleta(2);             //Completada en la escena 4.2.
     this.control.marcarTareaCompleta(3, true, true); //Completada en el minijuego Duelo.
 }
	void Start() {
		if (GameObject.Find ("ControladorEscena").GetComponent<controlEscena1> () != null)
			this.control = GameObject.Find ("ControladorEscena").GetComponent<controlEscena1> ();

		if (VariablesGenerales.Instance.getCofreAbierto ())
			this.gameObject.GetComponent<SpriteRenderer>().sprite = cofreAbierto;

		else
			this.gameObject.GetComponent<SpriteRenderer>().sprite = cofreCerrado;

		this.varHUD = GameObject.Find ("HUD").GetComponent<variablesHUD> ();
	}
    void Start()
    {
        if (GameObject.Find("ControladorEscena").GetComponent <controlEscena1> () != null)
        {
            this.control = GameObject.Find("ControladorEscena").GetComponent <controlEscena1> ();
        }

        if (VariablesGenerales.Instance.getCofreAbierto())
        {
            this.gameObject.GetComponent <SpriteRenderer>().sprite = cofreAbierto;
        }

        else
        {
            this.gameObject.GetComponent <SpriteRenderer>().sprite = cofreCerrado;
        }

        this.varHUD = GameObject.Find("HUD").GetComponent <variablesHUD> ();
    }
	void Start () {
		this.varHUD = GameObject.Find ("HUD").GetComponent<variablesHUD> ();
		this.control = GameObject.Find ("ControladorEscena").GetComponent<controladorEscena> ();
	}
Exemple #10
0
 void Start()
 {
     this.varHUD  = GameObject.Find("HUD").GetComponent <variablesHUD> ();
     this.control = GameObject.Find("ControladorEscena").GetComponent <controladorEscena> ();
 }