mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-02 14:29:23 +00:00
17 lines
474 B
C#
17 lines
474 B
C#
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; }
|
|
}
|
|
}
|