public void Shoot() { if (canShoot) { pool.Acquire(this.transform, (int)BulletTypes.Types.PlayerRegular); OnShoot(); canShoot = false; } }
IEnumerator Shoot() { yield return(new WaitForSeconds(shotTimer)); pool.Acquire(this.transform, (int)BulletTypes.Types.EnemyRegular); }