internal override void OnDone() { base.OnDone(); if (onReject != null && ErrorData != null) { onReject.Args = ErrorData; JTaskManager.AddTask(onReject); } if (onResolve != null && SuccessData != null) { onResolve.Args = SuccessData; JTaskManager.AddTask(onResolve); } }
internal override ETaskRunningStatus Update(float dt) { if (job.Status == ETaskStatus.Processing) { return(ETaskRunningStatus.Running); } timerSec += dt; if (timerSec >= intervalSec) { JTaskManager.AddTask(job); timerSec = 0; } return(ETaskRunningStatus.Running); }