# data[].attributes.body
using UnityEngine.UI;

public class PlayerHealth : MonoBehaviour
{
public GameObject Player;
public Text winText;
Image HealthBar;
float maxHealth = 1000f;
public static float health;

void Start()
{
HealthBar = GetComponent<Image> ();
health = maxHealth;
}

void Update()
{
HealthBar.fillAmount = health / maxHealth;

if (health > 1000)
{
health = 1000;
}

if (health <= 0)
{
winText.text = "You lose!";
StartCoroutine (gameOver ());

}
}
IEnumerator gameOver()
{
yield return new WaitForSeconds (1);
Application.LoadLevel(Application.loadedLevel);
}
}

# data[].attributes.body
https://drive.google.com/open?id=1BBUUNfklcVZZAPodf0dY_4pbuJMwd174

# data[].attributes.body
Con pickups y un GAMEOVER que aparece por 0.4 nanosegundos... laksdfjlaskdjfpoaewj

# data[].attributes.body
(Caminar)

# data[].attributes.body
https://drive.google.com/open?id=1l804DLUlPvTKBRB767f-YazsjimEA_0B

# data[].attributes.body
Beta 7 del juego Rain Rush, inicio, game over implementados y menu de inicio.

# data[].attributes.body
¿para cuando esos props?

# data[].attributes.attachment_link.title
13 - Documento de experiencia interactiva - Etapa 4-Proponer.pdf

# data[].attributes.body
(Test Room)

# data[].attributes.attachment_link.title
11 - Iniciativas de experiencia interactiva- Etapa 3-Delimitar.xlsx

# data[].attributes.attachment_link.title
11 - Iniciativas de experiencia interactiva- Etapa 3-Delimitar.xlsx