Animator bool parameter doesn't work when switched too fast,Animator bool parameter too fast

I have an animator parameter (Bool) and in my script it is switched when an input is detected, but if the input is too fastly switched then the animation will not start (even if it says that the bool is switched). i Think that this is a bug

 void Update()
            //this is the input
            is_shooting = Input.GetMouseButtonDown(0);
                if (is_shooting == true)
                   //this is the animator
                   Gun.SetBool("Fire", true);

Are you sure your Transitions are setup correctly like the Exit Time or the Transition Duration? Because having Exit Time or Transition Duration can cause it to switch states too fast.

Yes, the problem was that it had a transition duration and i didn’t notice it because it was at 0.25 as default