/// <summary> /// Fires a bullet from ammo pool. /// </summary> public void OnShoot() { if (!ammo.CanShoot) { return; } Bullet bullet = GetBulletType(); ObjectPooler.Instance.SpawnFromPool(bullet.PoolType, firePoint.position, firePoint.rotation); ammo.ConsumeBullet(bullet); chargeTimer.ResetTimer(); }