using UnityEngine;
|
|
public class PN_WaitTime : ProcessNode
|
{
|
private float m_StartTime;
|
|
public PN_WaitTime(int ms)
|
{
|
intParam = ms;
|
}
|
|
public override void Init()
|
{
|
m_StartTime = Time.time;
|
#if UNITY_EDITOR
|
if (RuntimeLogUtility.s_LogProcessInfo)
|
{
|
UnityEngine.Debug.LogFormat("开始等待时间 {0} 毫秒", intParam);
|
}
|
#endif
|
}
|
|
public override bool IsOver()
|
{
|
int _escapeTime = (int)((Time.time - m_StartTime) * 1000);
|
return _escapeTime > intParam;
|
}
|
|
public override void UnInit()
|
{
|
#if UNITY_EDITOR
|
if (RuntimeLogUtility.s_LogProcessInfo)
|
{
|
UnityEngine.Debug.LogFormat("等待时间结束");
|
}
|
#endif
|
}
|
|
public override void Update()
|
{
|
}
|
}
|