TH1/Unity/Assets/Scripts/HotfixView/Client/Demo/Scene/AfterCreateCurrentScene_AddComponent.cs
2025-07-17 18:26:28 +08:00

13 lines
414 B
C#

namespace ET.Client
{
[Event(SceneType.Current)]
public class AfterCreateCurrentScene_AddComponent: AEvent<Scene, AfterCreateCurrentScene>
{
protected override async ETTask Run(Scene scene, AfterCreateCurrentScene args)
{
scene.AddComponent<UIComponent>();
scene.AddComponent<ResourcesLoaderComponent>();
await ETTask.CompletedTask;
}
}
}