示例#1
0
文件: Game1.cs 项目: DJ618/bullethell
        private void SpawnEnemyProjectiles(object sender, FirePatternEventArgs args)
        {
            var projectileList = args.Projectiles;

            projectileManager.AddEnemyProjectiles(projectileList);
            collisionDetector.AddEnemyProjectiles(projectileList);
        }
示例#2
0
文件: Game1.cs 项目: DJ618/bullethell
        private void CreateFriendlyProjectiles(object sender, FirePatternEventArgs args)
        {
            var projectileList = args.Projectiles;

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