AfterCreateCurrentScene_AddComponent.cs 480 B

1234567891011121314
  1. namespace ET.Client
  2. {
  3. [Event(SceneType.Current)]
  4. public class AfterCreateCurrentScene_AddComponent: AEvent<EventType.AfterCreateCurrentScene>
  5. {
  6. protected override async ETTask Run(Scene scene, EventType.AfterCreateCurrentScene args)
  7. {
  8. scene.AddComponent<GameObjectPool>();
  9. scene.AddComponent<ModelViewComponent>();
  10. //scene.AddComponent<OperaComponent>();
  11. await ETTask.CompletedTask;
  12. }
  13. }
  14. }