Files
TEngine/Assets/GameScripts/DotNet/Hotfix/Share/Demo/EntryEvent1_InitShare.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

17 lines
572 B
C#

namespace ET
{
[Event(SceneType.Main)]
public class EntryEvent1_InitShare: AEvent<Scene, EventType.EntryEvent1>
{
protected override async ETTask Run(Scene root, EventType.EntryEvent1 args)
{
await World.Instance.AddSingleton<ConfigComponent>().LoadAsync();
root.AddComponent<ObjectWait>();
root.AddComponent<MailBoxComponent, MailBoxType>(MailBoxType.UnOrderedMessage);
root.AddComponent<ActorInnerComponent>();
await ETTask.CompletedTask;
}
}
}