Пример #1
0
        public void Initialize(Animation animation, Death death, Vector2 position, Texture2D hitbox)
        {
            Initialize(animation, death, position);

            _hitbox = hitbox;
            _showHitbox = true;
        }
Пример #2
0
        public void Initialize(Animation animation, Death death, Vector2 position)
        {
            Animation = animation;
            Position = position;            
            
            _death = death;

            Active = true;

            Health = 10;

            Damage = 10;

            moveSpeed = 6f;

            Value = 100;
        }
Пример #3
0
        public void Initialize(Animation animation, Death death, Vector2 position, Input input, ProjectileManager projectileManager, int heightBoundry, int widthBoundry)
        {
            Animation = animation;

            Position = position;

            _input = input;
            _projectileManager = projectileManager;

            _heightBoundry = heightBoundry;
            _widthBoundry = widthBoundry;
                        
            _death = death;

            Active = true;

            //Health = 20;
            Health = 100;

            moveSpeed = 8f;
        }
Пример #4
0
        public void Initialize(Animation animation, Death death, Vector2 position, Input input, ProjectileManager projectileManager, int heightBoundry, int widthBoundry, Texture2D hitbox)
        {
            Initialize(animation, death, position, input, projectileManager, heightBoundry, widthBoundry);

            _hitbox = hitbox;
        }