Hi,
Would disabling a script and enabling it at runtime do the trick?
If so drag the script component from the gameobject's inspector into the action list of the state that should control the enabling.
When you drop the script component a small menu will appear, choose 'set property'.
In the set property action that has now appeared choose enable, then tick or untick the enable box as needed.
Good luck with it. I hope this helps you achieve what you are trying to do and let us know how it goes.