提交更新

This commit is contained in:
CortexCore
2023-07-12 15:27:27 +08:00
parent 4af7cec47b
commit 498b0617f8
13 changed files with 294 additions and 154 deletions

View File

@@ -1,3 +1,5 @@
using System.Diagnostics;
using System.Security;
using Godot;
using BITKit;
@@ -37,6 +39,8 @@ public partial class CourseElement : Node
return;
}
Stopwatch stopwatch = new();
stopwatch.Start();
if (CurrentScene?.Name == CourseScene?.ResourceName)
{
BIT4Log.Log<CourseElement>($"已返回当前课程");
@@ -52,6 +56,9 @@ public partial class CourseElement : Node
CurrentScene = CourseScene!.Instantiate();
GetTree().Root.AddChild(CurrentScene);
UXService.Open(CurrentScene as Control);
BIT4Log.Log<CourseElement>($"已加载新的课程:\t{CurrentScene.Name}");
BIT4Log.Log<CourseElement>($"已加载新的课程:\t{CourseScene.ResourceName}");
stopwatch.Stop();
BIT4Log.Log<CourseElement>($"加载课程耗时:\t{stopwatch.ElapsedMilliseconds}ms");
}
}