…
No because InvokeRepeating basically “registers” the call with the timing you provide. Also - that switch case is ugly.
I don’t think Unity will update repeatrate after the InvokeRepeating(). Try to move your code to the Update() and use Invoke() instead of InvokeRepeating().