Esempio n. 1
0
        public void DoDamage(float Amount)
        {
            Amount = (float)Math.Ceiling(Amount);
            TextTag.CreateOnHitTextTag((int)Amount, Level, Position);
            LifeCurrent -= Amount;

            if (LifeCurrent < 0)
            {
                Respawn(new Vector2(new Random().Next(300, Level.Ground.Width - 300), 50));
            }
        }