Skip to content

This is a tool I made for my own game to remove redundancy from my workflow

License

Notifications You must be signed in to change notification settings

alithegreat74/State-Machine-Generator

Repository files navigation

Logo

Apache License state version

Statemachine Generator

The Statemachine Generator is a Unity tool designed to simplify and streamline the creation of state machines in your project. This tool eliminates the redundancy of manually copying and re-writing code for different states, allowing you to focus more on gameplay logic rather than boilerplate code.

Screenshots

App Screenshot

App Screenshot

App Screenshot

App Screenshot

How to Use

  1. Open the tool from Tools > IcarusTools > State machine Generator.
  2. Use the Base Scripts panel to create your foundational state machine scripts.
  3. Switch to the Player Scripts panel to create and manage player-specific states and transitions.
  4. Use the Enemy Base Scripts panel for creating enemy base logic.
  5. Finally, use the Enemy States panel to create new enemies and define their behaviors.

Each panel is designed to minimize redundancy and generate clean, organized code for you.

Code Structure

The generated code follows a well-organized structure, keeping your state machine classes modular and manageable. You can review the class hierarchy and relationships in the diagram below.

UML

Note: The full diagram file is available in Assets/Diagrams if the image is not fully visible.

Installation

  1. Download the package from Link to Download.
  2. Import the package into your Unity project.
  3. Open the State Machine Generator from the Tools menu.

About

This is a tool I made for my own game to remove redundancy from my workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages