Skip to content

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.

TimGroeneboom/UnityStatePatternCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages