42 lines
851 B
C#
42 lines
851 B
C#
using Gameplay.PlayerSkill.State;
|
|
using LTGame;
|
|
namespace Gameplay.PlayerSkill
|
|
{
|
|
public class PlayerSkillManager
|
|
{
|
|
|
|
private NStateMachine<BasePlayerSkillState> _fsm;
|
|
|
|
public void Init()
|
|
{
|
|
_InitFsm();
|
|
}
|
|
|
|
private void _InitFsm()
|
|
{
|
|
_fsm = new NStateMachine<BasePlayerSkillState>();
|
|
_fsm.Add(new PlayerSkillStateIdle());
|
|
_fsm.Add(new PlayerSkillStateChoosePos());
|
|
_fsm.Add(new PlayerSkillStateRelease());
|
|
|
|
_fsm.ChangeState(EPlayerSkillState.Idle);
|
|
}
|
|
|
|
public void LogicUpdate(float dt)
|
|
{
|
|
_fsm.LogicUpdate(dt);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
|
|
}
|
|
|
|
public float GetCDProgress(int id)
|
|
{
|
|
return .5f;
|
|
}
|
|
|
|
}
|
|
}
|