public override void Update() { if (ammo > 0) { if (time < coolDown) time += Time.deltaTime; if (time >= coolDown) canFire = true; } }