CurrentScenesComponentSystem.cs 492 B

1234567891011121314151617181920
  1. using System;
  2. namespace ET
  3. {
  4. public static class CurrentScenesComponentSystem
  5. {
  6. [ObjectSystem]
  7. public class CurrentScenesComponentAwakeSystem : AwakeSystem<CurrentScenesComponent>
  8. {
  9. public override void Awake(CurrentScenesComponent self)
  10. {
  11. }
  12. }
  13. public static Scene CurrentScene(this Scene zoneScene)
  14. {
  15. return zoneScene.GetComponent<CurrentScenesComponent>()?.Scene;
  16. }
  17. }
  18. }