This commit is contained in:
CortexCore
2023-10-20 19:31:12 +08:00
parent 5cd094ed9a
commit a160813262
1878 changed files with 630581 additions and 4485 deletions

View File

@@ -12,11 +12,12 @@ namespace BITKit.Entities.Player
public abstract class StateBasedPlayerComponent<T> : EntityPlayerComponent,IStateMachine<T> where T : IState
{
[SerializeField] private MonoStateMachine<T> stateMachine;
public override void Initialize(IEntity _entity)
public override void OnAwake()
{
base.Initialize(_entity);
stateMachine?.Initialize();
base.OnAwake();
}
public bool Enabled
{
get => stateMachine.Enabled;