コード例 #1
0
        // 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);
コード例 #2
0
 public PrefabInfo(EntityResourceAttribute att) : base(att.AssetBundleName, att.AssetPath, att.ResourcePath)
 {
 }