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

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

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