
This asset pack saves you hours of development time and simplifies the addition of turn-based logic to your gameIn only a few minutes of setup time, you can immediately get your game's turn logic up and running. A full reference and a quick-start tutorial are provided.The quick-start tutorial will teach you how to set up your game's turn-based logic with a simple drag and drop, a click of a button, and a few easy lines of code.Documentation:README.md - start here, contains information you should know right away right before you read the quick-start tutorialQuickstart.md - a small tutorial and how to get the turn-based system set up with your gameFullReference.md - a full reference to the aspects and components of this system, including extra public methods that are included in the system to make your development process easierThe System:TurnManager.prefab - The heart of the turn-based system, a singleton that computes the main turn logic and provides easy drag and drop and button features for an easier user experiencecontains TurnManager.csIActor.cs - the definition of the IActor C# Interface type that every "actor" in the scene must implement. The TurnManager refers to scripts implementing this interface and controls their turnEditorTurnManagerEditor.cs - important for the custom inspector for the TurnManager script componentDemo Scene:TurnQueueUI - lists the next N actors' turns on the UIEndTurnButton - forcefully ends the current turn and immediately starts the nextDemo Actors - Game Objects to visually show the turn based system in a demoI had AI help me put together the custom inspector UI look as well as solve an obstacle with serializationThis asset pack saves you hours of development time and simplifies the addition of turn-based logic to your game
In only a few minutes of setup time, you can immediately get your game's turn logic up and running. A full reference and a quick-start tutorial are provided.
The quick-start tutorial will teach you how to set up your game's turn-based logic with a simple drag and drop, a click of a button, and a few easy lines of code.
Documentation:
README.md - start here, contains information you should know right away right before you read the quick-start tutorial
Quickstart.md - a small tutorial and how to get the turn-based system set up with your game
FullReference.md - a full reference to the aspects and components of this system, including extra public methods that are included in the system to make your development process easier
The System:
TurnManager.prefab - The heart of the turn-based system, a singleton that computes the main turn logic and provides easy drag and drop and button features for an easier user experience
contains TurnManager.cs
IActor.cs - the definition of the IActor C# Interface type that every "actor" in the scene must implement. The TurnManager refers to scripts implementing this interface and controls their turn
Editor
TurnManagerEditor.cs - important for the custom inspector for the TurnManager script component
Demo Scene:
TurnQueueUI - lists the next N actors' turns on the UI
EndTurnButton - forcefully ends the current turn and immediately starts the next
Demo Actors - Game Objects to visually show the turn based system in a demo
I had AI help me put together the custom inspector UI look as well as solve an obstacle with serialization