void Update()
    {
        timer += Time.deltaTime;

        if (canFire && Input.GetButton("Fire1") && timer >= timeBetweenBullets)
        {
            Fire();
        }

        if (timer >= (timeBetweenBullets * effectsDisplayTime))
        {
            DisableEffects();
        }

        if (isDamaged)
        {
            damageEffect.showEffect(true);
        }
        else
        {
            damageEffect.showEffect(false);
        }

        isDamaged = false;
    }