阶段1/UpdateScheduler调度器优化, 未嵌入
This commit is contained in:
@@ -15,6 +15,8 @@ namespace Demo.Game
|
||||
[Content] public GameController RootGameController;
|
||||
|
||||
public string SourcePath;
|
||||
|
||||
[Content] public UpdateScheduler Scheduler = new UpdateScheduler();
|
||||
|
||||
protected override IEnumerator DoSomethingDuringApplyScript()
|
||||
{
|
||||
@@ -32,6 +34,10 @@ namespace Demo.Game
|
||||
{
|
||||
Keyboard.current.onTextInput -= InputCatchChar;
|
||||
}
|
||||
|
||||
// 清理调度器
|
||||
Scheduler?.Clear();
|
||||
|
||||
yield return base.UnloadScript();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user