示例#1
0
            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;
            }
示例#2
0
            public static void Update(Player player)
            {
                animation.Update();

                score = player.Score;
            }