1
This commit is contained in:
@@ -7,7 +7,7 @@ using UnityEngine;
|
||||
|
||||
namespace BITKit.Entities
|
||||
{
|
||||
public class StateBasedComponent<T> : EntityComponent,IStateMachine<T> where T : IState
|
||||
public class StateBasedBehavior<T> : EntityBehavior,IStateMachine<T> where T : IState
|
||||
{
|
||||
[SerializeField] private MonoStateMachine<T> stateMachine;
|
||||
public bool Enabled
|
||||
@@ -28,9 +28,9 @@ namespace BITKit.Entities
|
||||
remove => stateMachine.OnStateChanged -= value;
|
||||
}
|
||||
public IDictionary<Type, T> StateDictionary => stateMachine.StateDictionary;
|
||||
public override void Initialize(IEntity _entity)
|
||||
public override void Initialize(IEntity entity)
|
||||
{
|
||||
base.Initialize(_entity);
|
||||
base.Initialize(entity);
|
||||
if (stateMachine is null)
|
||||
{
|
||||
Debug.LogWarning(GetType().Name);
|
||||
|
Reference in New Issue
Block a user