Пример #1
0
        public ProjectileComponent AddProjectile(FourDirectionPlayerComponent component, string sheetName, float acceleration)
        {
            Vector2             direction  = component.GetProjectileDirection();
            ProjectileComponent projectile = new ProjectileComponent(this, component, sheetName, direction, acceleration);

            Components.Add(projectile);
            return(projectile);
        }
Пример #2
0
 public ProjectileComponent AddProjectile(FourDirectionPlayerComponent component, string sheetName, float acceleration)
 {
     Vector2 direction = component.GetProjectileDirection();
     ProjectileComponent projectile = new ProjectileComponent(this, component, sheetName, direction, acceleration);
     Components.Add(projectile);
     return projectile;
 }