public BurstShootStrategy(ThermalWeapon weapon, float intervalBetweenBurst, float intervalBetweenShoot, int bulletShootInSingleBurst) { this.weapon = weapon; this.intervalBetweenBurst = intervalBetweenBurst; this.intervalBetweenShoot = intervalBetweenShoot; this.bulletShootInSingleBurst = bulletShootInSingleBurst; lastBurstTime = -intervalBetweenBurst; }
public SingleShootStrategy(ThermalWeapon weapon, float interval) { this.weapon = weapon; this.interval = interval; lastShootTime = -interval; }