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> ();
    }