TH1/Unity/Assets/Scripts/HotfixView/Client/LockStep/Scene/AfterCreateClientScene_LSAddComponent.cs

13 lines
414 B
C#

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