/// <summary> /// 课件地址实体 /// </summary> private static void ShowEntity(this EntityComponent entityComponent, Type logicType, string entityGroup, string seasonPath, string path, int priority, EntityData data) { if (data == null) { Log.Warning("Data is invalid."); return; } IDataTable <DREntity> dtEntity = GameEntry.DataTable.GetDataTable <DREntity>(); DREntity drEntity = dtEntity.GetDataRow(data.TypeId); if (drEntity == null) { Log.Warning("Can not load entity id '{0}' from data table.", data.TypeId.ToString()); return; } entityComponent.ShowEntity(data.Id, logicType, AssetUtility.GetLessonEntityAsset(seasonPath, path, drEntity.AssetName), entityGroup, priority, data); }
/// <summary> /// 自定义的实体显示方法 /// </summary> /// <param name="logicType">实体类型</param> /// <param name="entityGroup">实体组</param> /// <param name="path">实体路径</param> /// <param name="data">实体数据</param> public static void ShowCustomEntity(this EntityComponent entityComponent, Type logicType, string entityGroup, string seasonPath, string path, EntityData data) { entityComponent.ShowEntity(logicType, entityGroup, seasonPath, path, Constant.AssetPriority.GroundModelAsset, data); }