예제 #1
0
 void comprovaVida()
 {
     if (vida <= 0)
     {
         if (xml.checkRecord((int)puntuacio))
         {
             infoPartida.GetComponent <InfoPartida>().record = true;
         }
         infoPartida.GetComponent <InfoPartida>().puntuacio = (int)puntuacio;
         infoPartida.GetComponent <InfoPartida>().motiuMort = 1;
         xml.guardaDades();
         Application.LoadLevel("GameOver");
     }
 }