Пример #1
0
        protected Entity(DnK gameRef)
        {
            GameRef = gameRef;

            CollisionBoxes = new CollisionElements();
            _scale = new Vector2(1f, 1f);
            IsAlive = true;
        }
Пример #2
0
        protected Entity(GameRunner gameRef)
        {
            GameRef = gameRef;

            CollisionBoxes = new CollisionElements();
            _scale         = new Vector2(1f, 1f);
            IsAlive        = true;
        }
Пример #3
0
 internal bool Intersects(CollisionElements collisionBoxes)
 {
     return(CollisionBoxes.Intersects(collisionBoxes));
 }