public EnemyShotManager(DeviceContext ctx, RectTargetManager enemyManager, IMovableRectTarget player)
 {
     this.context = ctx;
     this.player  = player;       ///追加
     this.enemies = enemyManager; ///追加
     this.Initialize();
 }
Exemplo n.º 2
0
        public EnemyShot(DeviceContext ctx, IMovableRectTarget player, int speed) : base(ctx)
        {
            this.shotBrush = new SolidColorBrush(this.d2dDeviceContext, Color.GreenYellow);
            this.isVisible = true;
            this.player    = player;
            this.speed     = speed;

            this.debugBrush = new SolidColorBrush(this.d2dDeviceContext, Color.Black);
        }