public static void Update(Player player) { //animation.RemoveAllFromQueue(); //if (player.Health <= 0) //{ // animation.AddToQueue("dead"); //} //else if (player.IsPoisoned) //{ // animation.AddToQueue("poison"); //} //else //{ // animation.AddToQueue("normal"); //} animation.Update(); health = player.Health; if (health < 0) { health = 0; } maxHealth = player.MaxHealth; }
public static void Update(Player player) { animation.Update(); score = player.Score; }