框架上传
This commit is contained in:
16
Assets/00.StaryEvo/Runtime/Rule/ICanGetSystem.cs
Normal file
16
Assets/00.StaryEvo/Runtime/Rule/ICanGetSystem.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user