备份CatanBuilding瘦身独立工程
This commit is contained in:
29
Assets/Scripts/UI/Potion/Action/PotionAction.cs
Normal file
29
Assets/Scripts/UI/Potion/Action/PotionAction.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user