public Gun(IGunData gunData, MonoBehaviour parrentMonoBehaviour, BulletPool bulletPool) { duration = gunData.GetDuration(); timeBetweenShots = gunData.GetTimeBetweenShots(); speed = gunData.GetSpeed(); this.bulletPool = bulletPool; this.parrentMonoBehaviour = parrentMonoBehaviour; onCooldown = false; }
public BulletSpawner(BulletPool bulletPool) { this.bulletPool = bulletPool; bullets = new List <Bullet>(); SetupEvents(true); }