Hi Parth,
Have you already tried to add Debug.Logs to your code to see what is going on during runtime? For example, you could add a Debug.Log to the default case to see if it gets executed. Add one before and after the Invoke method call.
See also:
- Forum User Guides : How to apply code formatting within your post
- Forum User Guides : How to mark a topic as solved