18 lines
358 B
C#
18 lines
358 B
C#
|
|
using System;
|
||
|
|
|
||
|
|
namespace Aliciza.Services.Example
|
||
|
|
{
|
||
|
|
public interface ITimerService : IService
|
||
|
|
{
|
||
|
|
float ElapsedTime { get; }
|
||
|
|
|
||
|
|
int Once(float delay, Action callback);
|
||
|
|
|
||
|
|
int Repeat(float interval, Action callback, int repeatCount = -1, float firstDelay = -1f);
|
||
|
|
|
||
|
|
bool Cancel(int timerId);
|
||
|
|
|
||
|
|
void CancelAll();
|
||
|
|
}
|
||
|
|
}
|