Beispiel #1
0
        private void Fire(BaseEnemy enemy)
        {
            TowerBullet bullet = BulletPool.GetBullet();

            bullet.FireToEnemy(this, enemy);

            _currentFireCooldown = 1 / _fireSpeed;
            _enableToFire        = false;
        }
Beispiel #2
0
 public static void ReleaseBullet(TowerBullet bullet)
 {
     _bulletPool.ReleaseObject(bullet);
 }