CurrentScenesComponentSystem.cs 256 B

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