This commit is contained in:
2025-10-06 04:18:49 +08:00
commit df2cacdb92
2784 changed files with 1280840 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include "EngineFrame/Component/Component.h"
#include "Global/Global_Enum.h"
class CharacterObject;
class Chr_StateMachine : public Component
{
private:
// 父对象
CharacterObject *chr_Parent;
// 状态
int State = -1;
// 状态时间
int StateTime = 0;
public:
void Init(CharacterObject *parent);
void ChangeState(int state);
int GetState() { return State; };
void Update(float deltaTime);
};