修改类名
This commit is contained in:
@@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.FiniteStateMachine
|
||||
{
|
||||
public interface IFSMManager
|
||||
public interface IFsmSystem
|
||||
{
|
||||
IFSMIState CurState { get; set; }
|
||||
void AddState(IFSMIState state);
|
||||
@@ -13,20 +13,15 @@ namespace Stary.Evo.FiniteStateMachine
|
||||
Dictionary<string, IFSMIState> States { get; set; }
|
||||
}
|
||||
|
||||
public class FSMManager : IFSMManager
|
||||
public class FsmSystem : IFsmSystem
|
||||
{
|
||||
public IFSMIState CurState { get; set; }
|
||||
public Dictionary<string, IFSMIState> States { get; set; }
|
||||
|
||||
public FSMManager()
|
||||
{
|
||||
States = new Dictionary<string, IFSMIState>();
|
||||
}
|
||||
public Dictionary<string, IFSMIState> States { get; set; } = new();
|
||||
|
||||
public void AddState(IFSMIState state)
|
||||
{
|
||||
Debug.Log(state.Name);
|
||||
if (!States.ContainsKey(state.Name))
|
||||
if (!States.ContainsKey(state.Name))
|
||||
{
|
||||
States.Add(state.Name, state);
|
||||
}
|
||||
Reference in New Issue
Block a user