框架上传
This commit is contained in:
14
Assets/00.StaryEvo/Runtime/Rule/ICanGetUtility.cs
Normal file
14
Assets/00.StaryEvo/Runtime/Rule/ICanGetUtility.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Stary.Evo
|
||||
{
|
||||
public interface ICanGetUtility: IBelongToArchitecture
|
||||
{
|
||||
|
||||
}
|
||||
public static class CanGetUtilityExtension
|
||||
{
|
||||
public static T GetUtility<T>(this ICanGetUtility self) where T : class, IUtility
|
||||
{
|
||||
return self.GetArchitecture().GetUtility<T>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user