31 lines
511 B
C#
31 lines
511 B
C#
using Gameplay.Pool;
|
|
namespace Gameplay.Effect
|
|
{
|
|
public class BaseEffectLogic: IPoolData
|
|
{
|
|
|
|
public EffectPlayingData effect;
|
|
|
|
public float passTime;
|
|
|
|
public void LogicUpdate(float dt)
|
|
{
|
|
passTime += dt;
|
|
_OnLogicUpdate(dt);
|
|
}
|
|
|
|
protected virtual void _OnLogicUpdate(float dt)
|
|
{
|
|
|
|
}
|
|
|
|
public void OnGet()
|
|
{
|
|
passTime = 0;
|
|
}
|
|
public void OnReturn()
|
|
{
|
|
}
|
|
}
|
|
}
|