2023-08-12 01:43:24 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace BITKit
|
|
|
|
|
{
|
|
|
|
|
public interface ITicker
|
|
|
|
|
{
|
|
|
|
|
void Add(Action action);
|
2023-11-30 00:23:23 +08:00
|
|
|
|
void AddAsUpdate(Action<float> action);
|
|
|
|
|
void AddAsFixedUpdate(Action<float> action);
|
|
|
|
|
void RemoveAsUpdate(Action<float> action);
|
|
|
|
|
void RemoveAsFixedUpdate(Action<float> action);
|
2023-08-12 01:43:24 +08:00
|
|
|
|
}
|
|
|
|
|
public interface IMainTicker : ITicker { }
|
|
|
|
|
public interface IThreadTicker : ITicker { }
|
|
|
|
|
}
|