AfterCreateCurrentScene_AddComponent.cs 443 B

12345678910111213141516
  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<ModelViewComponent>();
  11. //scene.AddComponent<OperaComponent>();
  12. await ETTask.CompletedTask;
  13. }
  14. }
  15. }