public void shoot() { if (fireAmmunition.gameObject.activeInHierarchy) { fireAmmunition.FireBullet(3, false); } }
private void shoot() { fireAmmunition.FireBullet(Mathf.Clamp(pressTime, 1, 500)); fireForceBar.SetBarValue(0); downTime = 0; pressTime = 0; }