mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-02 22:31:10 +00:00
feat: add state machine
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using _Project.Develop.Runtime.Utilities.Conditions;
|
||||
|
||||
namespace Assets._Project.Develop.Runtime.Utilities.StateMachineCore
|
||||
{
|
||||
public class StateTransition<TState> where TState : class, IState
|
||||
{
|
||||
public StateTransition(StateNode<TState> toState, ICondition condition)
|
||||
{
|
||||
ToState = toState;
|
||||
Condition = condition;
|
||||
}
|
||||
|
||||
public StateNode<TState> ToState { get; }
|
||||
public ICondition Condition { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user