| | |
| | | catch (Exception ex)
|
| | | {
|
| | | _task.state = TaskState.ReadFileFailure;
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | catch (Exception ex)
|
| | | {
|
| | | _task.state = TaskState.ParseFailure;
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (configDictionary.ContainsKey(token) == false)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the config:{0}", token);
|
| | | DebugEx.LogErrorFormat("not find the config:{0}", token);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | var dic = configDictionary[token];
|
| | | if (!dic.ContainsKey(_dwTemplateID))
|
| | | {
|
| | | DesignDebug.LogFormat("not find the config:{0},<color=#ff0000ff>ID:{1}</color>", typeof(T).Name, _dwTemplateID);
|
| | | DebugEx.LogFormat("not find the config:{0},<color=#ff0000ff>ID:{1}</color>", typeof(T).Name, _dwTemplateID);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (!configDictionary.ContainsKey(token))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | DebugEx.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (!configDictionary.ContainsKey(token))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | DebugEx.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|