public EnemyShotManager(DeviceContext ctx, RectTargetManager enemyManager, IMovableRectTarget player) { this.context = ctx; this.player = player; ///追加 this.enemies = enemyManager; ///追加 this.Initialize(); }
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); }