不注释了,就是和ccscheduler一样的
More...
◆ Schedule()
CustomSchedulerItem XSSLG.CustomScheduler.Schedule |
( |
Action |
func, |
|
|
float |
interval, |
|
|
int |
repeat = -1 , |
|
|
bool |
immediate = false , |
|
|
float |
delay = 0 |
|
) |
| |
|
inline |
定时调用func
- Parameters
-
func | 具体定时调用函数 |
interval | 几回合调用一次 |
repeat | 重复几次,为-1表示无限 |
immediate | 是否立即调用一次 |
delay | 延时几回合后再开始定时 |
- Returns
◆ ScheduleOnce()
几回合后调用函数
- Parameters
-
- Returns
◆ UnSchedule()
◆ Update()
void XSSLG.CustomScheduler.Update |
( |
float |
dt | ) |
|
|
inline |
定时器更新 自定义定时器的update要手动调用
- Parameters
-
◆ ScheduleList
The documentation for this class was generated from the following file:
- Assets/XSGridEditor/Scripts/base/utils/schedule/Schedule.cs