21 lines
440 B
C#
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>();
|
|
}
|
|
}
|
|
}
|
|
} |