NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Effect/Logic/BaseEffectLogic.cs

32 lines
538 B
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00
using Gameplay.Pool;
2023-08-22 19:08:45 +08:00
namespace Gameplay.Effect
{
2023-10-19 15:00:19 +08:00
public class BaseEffectLogic: IPoolData
2023-08-22 19:08:45 +08:00
{
public EffectPlayingData effect;
2023-10-19 15:00:19 +08:00
public float passTime;
2023-08-22 19:08:45 +08:00
public void LogicUpdate(float dt)
{
_OnLogicUpdate(dt);
2023-11-02 19:53:39 +08:00
passTime += dt;
2023-08-22 19:08:45 +08:00
}
protected virtual void _OnLogicUpdate(float dt)
{
}
2023-10-19 15:00:19 +08:00
public void OnGet()
{
passTime = 0;
}
public void OnReturn()
{
2024-01-02 15:11:37 +08:00
effect = null;
2023-10-19 15:00:19 +08:00
}
2023-08-22 19:08:45 +08:00
}
}