Files
Fishing2/Assets/Scripts/Fishing/Player/States~/PlayerStateBase.cs
2026-03-09 17:50:20 +08:00

21 lines
440 B
C#

using NBC;
using UnityEngine;
namespace NBF
{
public abstract class PlayerStateBase : FsmBaseState<Player>
{
protected Player Player => _owner;
/// <summary>
/// 检查状态超时
/// </summary>
public void CheckStateTimeout(float time)
{
if (Time.time - EnterTime >= time)
{
Root.Start<PlayerStateIdle>();
}
}
}
}