Files
Fishing2/Assets/Scripts/Fishing/Player/States/PlayerStateBase.cs
2026-01-11 23:58:02 +08:00

21 lines
442 B
C#

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