CurrentScenesComponentSystem.cs 265 B

123456789101112
  1. using System;
  2. namespace ET.Client
  3. {
  4. public static class CurrentScenesComponentSystem
  5. {
  6. public static Scene CurrentScene(this Scene zoneScene)
  7. {
  8. return zoneScene.GetComponent<CurrentScenesComponent>()?.Scene;
  9. }
  10. }
  11. }