16 lines
345 B
C#
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>();
|
|
}
|
|
}
|
|
} |