mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
14
Assets/GameScripts/DotNet/Hotfix/Share/FiberInit_Main.cs
Normal file
14
Assets/GameScripts/DotNet/Hotfix/Share/FiberInit_Main.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace ET
|
||||
{
|
||||
[Invoke((long)SceneType.Main)]
|
||||
public class FiberInit_Main: AInvokeHandler<FiberInit, ETTask>
|
||||
{
|
||||
public override async ETTask Handle(FiberInit fiberInit)
|
||||
{
|
||||
Scene root = fiberInit.Fiber.Root;
|
||||
await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent1());
|
||||
await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent2());
|
||||
await EventSystem.Instance.PublishAsync(root, new EventType.EntryEvent3());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user