任务失败, 该分支已经废弃
This commit is contained in:
@@ -108,7 +108,20 @@ namespace Demo.Game
|
||||
|
||||
Foo();
|
||||
}
|
||||
base.UpdateTicks(currentTime, deltaTime, tickType);
|
||||
|
||||
// 调用调度器进行扁平化Update(仅当有对象注册时)
|
||||
if (Scheduler != null && Scheduler.TotalRegistered > 0)
|
||||
{
|
||||
using (Profiler.BeginZone("RootObject.SchedulerUpdate"))
|
||||
{
|
||||
Scheduler.DoUpdate(currentTime, deltaTime, tickType);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 旧方式:调用base.UpdateTicks()(保持向后兼容)
|
||||
base.UpdateTicks(currentTime, deltaTime, tickType);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user