Files
2026-05-26 16:15:54 +08:00

30 lines
581 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace game
{
public class PotionAction
{
protected float m_WaitTime;
public void SetWaitTime(float time)
{
m_WaitTime = time;
}
#region
public virtual void Update(float deltaTime)
{
m_WaitTime -= deltaTime;
}
public virtual bool IsValid()
{
return m_WaitTime > 0f;
}
public virtual void Action()
{
}
#endregion
}
}