1
This commit is contained in:
@@ -20,7 +20,7 @@ namespace BITKit.StateMachine
|
||||
}
|
||||
[Header(Constant.Header.Components)]
|
||||
[SerializeReference, SubclassSelector] public List<TState> states = new();
|
||||
public IDictionary<System.Type, TState> StateDictonary { get; } = new Dictionary<Type, TState>();
|
||||
public IDictionary<System.Type, TState> StateDictionary { get; } = new Dictionary<Type, TState>();
|
||||
public IStateMachine<TState> StateMachine => this as IStateMachine<TState>;
|
||||
TState tempState;
|
||||
public virtual void OnStart()
|
||||
@@ -29,7 +29,7 @@ namespace BITKit.StateMachine
|
||||
{
|
||||
//state.TransitionState = InternalTransitionState;
|
||||
state.Initialize();
|
||||
StateDictonary.Add(state.GetType(), state);
|
||||
StateDictionary.Add(state.GetType(), state);
|
||||
}
|
||||
if (states.Count > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user