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 } }