Example #1
0
        private void SpawnEnemyProjectiles(object sender, FirePatternEventArgs args)
        {
            var projectileList = args.Projectiles;

            projectileManager.AddEnemyProjectiles(projectileList);
            collisionDetector.AddEnemyProjectiles(projectileList);
        }
Example #2
0
        private void CreateFriendlyProjectiles(object sender, FirePatternEventArgs args)
        {
            var projectileList = args.Projectiles;

            projectileManager.AddFriendlyProjectiles(projectileList);
            collisionDetector.AddFriendlyProjectiles(projectileList);
        }
Example #3
0
 protected void SpawnProjectiles(List <Projectile> projectiles)
 {
     if (!stop)
     {
         FirePatternEventArgs args = new FirePatternEventArgs(projectiles);
         OnSpawnProjectiles.Invoke(this, args);
     }
 }
Example #4
0
 private void SpawnProjectilesHandler(object sender, FirePatternEventArgs args)
 {
     SpawnProjectiles(args.Projectiles);
 }
Example #5
0
 private void SpawnProjectiles(object sender, FirePatternEventArgs args)
 {
     OnSpawnProjectiles.Invoke(this, args);
 }