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); }
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; }