Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 648 Bytes

File metadata and controls

16 lines (11 loc) · 648 Bytes

UnityStatePatternCreator

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.

Instructions :

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!