debug
This commit is contained in:
@@ -395,7 +395,7 @@ namespace Unity.FPS.Game
|
||||
if (m_CurrentAmmo >= 1f
|
||||
&& m_LastTimeShot + DelayBetweenShots < Time.time)
|
||||
{
|
||||
HandleShoot();
|
||||
// HandleShoot();
|
||||
m_CurrentAmmo -= 1f;
|
||||
|
||||
return true;
|
||||
@@ -446,10 +446,10 @@ namespace Unity.FPS.Game
|
||||
// spawn all bullets with random direction
|
||||
for (int i = 0; i < bulletsPerShotFinal; i++)
|
||||
{
|
||||
Vector3 shotDirection = GetShotDirectionWithinSpread(WeaponMuzzle);
|
||||
ProjectileBase newProjectile = Instantiate(ProjectilePrefab, WeaponMuzzle.position,
|
||||
Quaternion.LookRotation(shotDirection));
|
||||
newProjectile.Shoot(this);
|
||||
// Vector3 shotDirection = GetShotDirectionWithinSpread(WeaponMuzzle);
|
||||
// ProjectileBase newProjectile = Instantiate(ProjectilePrefab, WeaponMuzzle.position,
|
||||
// Quaternion.LookRotation(shotDirection));
|
||||
// newProjectile.Shoot(this);
|
||||
}
|
||||
|
||||
// muzzle flash
|
||||
|
||||
Reference in New Issue
Block a user