using ET.EventType; namespace ET.Client { [Event] public class AfterCreateCurrentScene_AddComponent: BEvent<EventType.AfterCreateCurrentScene> { protected override async ETTask OnEvent(AfterCreateCurrentScene a) { var scene = a.scene; scene.AddComponent<GameObjectPool>(); scene.AddComponent<ModelViewComponent>(); //scene.AddComponent<OperaComponent>(); await ETTask.CompletedTask; } } }