Пример #1
0
        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;
        }
Пример #2
0
 public BulletSpawner(BulletPool bulletPool)
 {
     this.bulletPool = bulletPool;
     bullets         = new List <Bullet>();
     SetupEvents(true);
 }