A set of T4 template scripts together with the unity project implementation aimed to quickly generate the c# classes whenever I want to implement the state pattern somewhere in my project.
Step 1 : Make sure StatePatternCreator.cs and StatePatternTemplateGenerator.dll are located in the Editor folder in your unity project
Step 2 : Click on CodeFlow/State Pattern/Create Pattern, an editor window will appear
Step 3 : Define the namespace, context ( name of the controller controlling the different states ) and different states
Step 4 : Click "Generate" and the classes will be generated for you!