// Update is called once per frame //void Update () { public void test() { if (!isDead) { isDead = GameObject.Find("Jugador").GetComponent <PrincesavueScript> ().muerte; if (isDead) { try { scoreCollection = ScoreList.Load(lPath); } catch { createXML3(lPath); scoreCollection = ScoreList.Load(lPath); } guiText.text = ""; //CAMBIAR POR OTRO GUI TEXT guiText.text = scoreCollection.getScores(0).Name + ": " + scoreCollection.getScores(0).Points + " ptos\n" + "" + scoreCollection.getScores(1).Name + ": " + scoreCollection.getScores(1).Points + " ptos\n" + "" + scoreCollection.getScores(2).Name + ": " + scoreCollection.getScores(2).Points + " ptos\n" + "" + scoreCollection.getScores(3).Name + ": " + scoreCollection.getScores(3).Points + " ptos\n" + "" + scoreCollection.getScores(4).Name + ": " + scoreCollection.getScores(4).Points + " ptos\n"; } } }