/// <summary> /// 填充加载表格失败事件 /// </summary> /// <param name="dataTableAssetName">数据表资源名称</param> /// <param name="errorMessage">错误信息</param> /// <param name="userData">用户自定义数据</param> /// <returns>加载数据表成功事件</returns> public LoadDataTableFailureGameEvent Fill(string dataTableAssetName, string errorMessage, object userData) { DataTableInfo loadDataTableInfo = (DataTableInfo)userData; UserData = loadDataTableInfo.UserData; DataTableName = loadDataTableInfo.DataTableName; DataTableAssetName = dataTableAssetName; ErrorMessage = errorMessage; return(this); }
/// <summary> /// 填充加载数据表成功事件 /// </summary> /// <param name="dataTableAssetName">数据表资源名称</param> /// <param name="duration">加载持续时间</param> /// <param name="userData">用户自定义数据</param> /// <returns>加载数据表成功事件</returns> public LoadDataTableSuccessGameEvent Fill(string dataTableAssetName, float duration, object userData) { DataTableInfo loadDataTableInfo = (DataTableInfo)userData; UserData = loadDataTableInfo.UserData; DataTableName = loadDataTableInfo.DataTableName; DataTableAssetName = dataTableAssetName; Duration = duration; return(this); }