Asteroids.Classes.Perks.ShieldPerk.GetHitBox C# (CSharp) Метод

GetHitBox() публичный Метод

public GetHitBox ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle
        public Rectangle GetHitBox()
        {
            if (lives >= 1)
            {
                return hitBox = new Rectangle((int)p.GetPos().X - 50, (int)p.GetPos().Y - 50, 100, 100);
            }
            else
            {
                return hitBox = new Rectangle(0, 0, 0, 0);
            }
        }