com.alicizax.unity.framework/Runtime/Timer/ITimerService.cs
陈思海 f4f0ea1754 [Optimization] TimerService&TimerDebug&AudioService
[Optimization] TimerService&TimerDebug&AudioService
2026-04-24 20:50:13 +08:00

18 lines
599 B
C#

using System;
namespace AlicizaX.Timer.Runtime
{
[UnityEngine.Scripting.Preserve]
public interface ITimerService : IService
{
int AddTimer(TimerHandlerNoArgs callback, float time, bool isLoop = false, bool isUnscaled = false);
int AddTimer<T>(Action<T> callback, T arg, float time, bool isLoop = false, bool isUnscaled = false) where T : class;
void Stop(int timerId);
void Resume(int timerId);
bool IsRunning(int timerId);
float GetLeftTime(int timerId);
void Restart(int timerId);
void RemoveTimer(int timerId);
}
}