private void SpawnEnemyProjectiles(object sender, FirePatternEventArgs args) { var projectileList = args.Projectiles; projectileManager.AddEnemyProjectiles(projectileList); collisionDetector.AddEnemyProjectiles(projectileList); }
private void CreateFriendlyProjectiles(object sender, FirePatternEventArgs args) { var projectileList = args.Projectiles; projectileManager.AddFriendlyProjectiles(projectileList); collisionDetector.AddFriendlyProjectiles(projectileList); }
protected void SpawnProjectiles(List <Projectile> projectiles) { if (!stop) { FirePatternEventArgs args = new FirePatternEventArgs(projectiles); OnSpawnProjectiles.Invoke(this, args); } }
private void SpawnProjectilesHandler(object sender, FirePatternEventArgs args) { SpawnProjectiles(args.Projectiles); }
private void SpawnProjectiles(object sender, FirePatternEventArgs args) { OnSpawnProjectiles.Invoke(this, args); }