AfterCreateCurrentScene_AddComponent.cs 493 B

1234567891011121314151617
  1. using ET.EventType;
  2. namespace ET.Client
  3. {
  4. [Event]
  5. public class AfterCreateCurrentScene_AddComponent: BEvent<EventType.AfterCreateCurrentScene>
  6. {
  7. protected override async ETTask OnEvent(AfterCreateCurrentScene a)
  8. {
  9. var scene = a.scene;
  10. scene.AddComponent<GameObjectPool>();
  11. scene.AddComponent<ModelViewComponent>();
  12. //scene.AddComponent<OperaComponent>();
  13. await ETTask.CompletedTask;
  14. }
  15. }
  16. }