// TODO 使用特性来管理实体资源加载 internal T CreateEntity <T>(Action <float> loadingCallback, Action <IEntityObject> loadDoneCallback) where T : class, IEntityObject, new() { Type type = typeof(T); EntityResourceAttribute attribute = type.GetCustomAttribute <EntityResourceAttribute>(); if (attribute != null) { if (HasEntityType(type)) { } } return(default);
public PrefabInfo(EntityResourceAttribute att) : base(att.AssetBundleName, att.AssetPath, att.ResourcePath) { }