public static UnityDebugViewerEditor GetEditor(string mode) { UnityDebugViewerEditor editor; if (editorDic.ContainsKey(mode)) { editor = editorDic[mode]; } else { editor = new UnityDebugViewerEditor(mode); editorDic.Add(mode, editor); } if (intermediaryEditorDic.ContainsKey(mode)) { editor.intermediaryEditor = intermediaryEditorDic[mode]; } return(editor); }
/// <summary> /// 激活modeList里某个指定的mode /// </summary> /// <param name="mode"></param> public static void ForceActiveEditor(string mode) { _editorForceToActive = modeList.Contains(mode) ? GetEditor(mode) : null; }