Unity3d-Finite-State-Machine
Unity3d-Finite-State-Machine copied to clipboard
A different script for each state
Would it be possible to have a separate script for each state? As it stands right now, the single FSM script can grow very long.
given the nature of this FSM, i would suggest to use partial class to "split" your methods into separate files, while keeping it in the same class.
Thank you, @fakegood. I am now using partial classes. My only problem lies in initialization and assertions since I have to hope between the Main class file and the other derivative files.