Files
plugin-library/Assets/00.StaryEvo/Runtime/Rule/ICanGetSystem.cs
2025-03-31 11:16:52 +08:00

16 lines
345 B
C#

using UnityEngine;
namespace Stary.Evo
{
public interface ICanGetSystem: IBelongToArchitecture
{
}
public static class CanGetSystemExtension
{
public static T GetSystem<T>(this ICanGetSystem self) where T : class, ISystem
{
return self.GetArchitecture().GetSystem<T>();
}
}
}