Unity3d-Finite-State-Machine icon indicating copy to clipboard operation
Unity3d-Finite-State-Machine copied to clipboard

Fix state name cannot contains underscore issue

Open fengye opened this issue 8 years ago • 1 comments

Thank you for creating the plugin. It works well. I find the state name cannot contain underscores, otherwise the corresponding state-based function not get called, such as void MY_STATE_IDLE_FixedUpdate(). So I made some changes in the function-finding part, and it now splits the function name with the last underscore it finds.

fengye avatar Dec 14 '16 02:12 fengye

Oh wow, this is from a million years ago, sorry I'm normally good with responding but I see from the timestamp things were crazy at that time. Looks like I good commit. There is a potentially for a Array out of index error though.

Will try incorporate this feature next time I'm working on the project

thefuntastic avatar Nov 09 '17 14:11 thefuntastic