private void Init() { // Check Game Root GameObject RootObj = GameObject.Find("ActionEditorRoot"); m_ObjSceneRoot = GameObject.Find("SceneRoot"); if (null == RootObj || null == m_ObjSceneRoot) { Debug.LogError("wrong scene"); } // SetUp Window m_MainWnd.minSize = new Vector2(WINDOW_MIN_WIDTH, WINDOW_MIN_HIEGHT); m_MainWnd.maxSize = new Vector2(WINDOW_MAX_WIDTH, WINDOW_MAX_HIEGHT); titleStyle = new GUIStyle(); titleStyle.fontSize = WINDOW_TITLE_FONTSIZE; titleStyle.normal.textColor = Color.white; m_KeyframeTexRed = ActionHelper.LoadEditorKeyframeTexRed(); m_KeyframeTexBlue = ActionHelper.LoadEditorKeyframeTexBlue(); m_FileDataList = ActionHelper.GetActionEditFileList(); // Init Frame Names InitFrameName(); m_szActionFrameName = new string[m_mapActionFrameNameDict.Count]; foreach (KeyValuePair <EActionFrameType, string> pair in m_mapActionFrameNameDict) { if (m_szActionFrameName[(int)pair.Key] == null) { m_szActionFrameName[(int)pair.Key] = pair.Value; } else { Debuger.LogError(pair.Key.ToString() + "Has Same Values !!!!"); } } // Init Data m_RuntimeParam = new AERuntimeParam(); }
public static void OpenWndow(AERuntimeParam param) { m_MainWnd = EditorWindow.GetWindow<AERuntimeParamEditorWindow>(false, "运行时参数编辑器", true); m_MainWnd.m_Param = param; m_MainWnd.Init(); }
public static void OpenWndow(AERuntimeParam param) { m_MainWnd = EditorWindow.GetWindow <AERuntimeParamEditorWindow>(false, "运行时参数编辑器", true); m_MainWnd.m_Param = param; m_MainWnd.Init(); }
private void Init() { // Check Game Root GameObject RootObj = GameObject.Find("ActionEditorRoot"); m_ObjSceneRoot = GameObject.Find("SceneRoot"); if (null == RootObj || null == m_ObjSceneRoot) { Debug.LogError("wrong scene"); } // SetUp Window m_MainWnd.minSize = new Vector2(WINDOW_MIN_WIDTH, WINDOW_MIN_HIEGHT); m_MainWnd.maxSize = new Vector2(WINDOW_MAX_WIDTH, WINDOW_MAX_HIEGHT); titleStyle = new GUIStyle(); titleStyle.fontSize = WINDOW_TITLE_FONTSIZE; titleStyle.normal.textColor = Color.white; m_KeyframeTexRed = ActionHelper.LoadEditorKeyframeTexRed(); m_KeyframeTexBlue = ActionHelper.LoadEditorKeyframeTexBlue(); m_FileDataList = ActionHelper.GetActionEditFileList(); // Init Frame Names InitFrameName(); m_szActionFrameName = new string[m_mapActionFrameNameDict.Count]; foreach (KeyValuePair<EActionFrameType, string> pair in m_mapActionFrameNameDict) { if (m_szActionFrameName[(int)pair.Key] == null) { m_szActionFrameName[(int)pair.Key] = pair.Value; } else { Debuger.LogError(pair.Key.ToString() + "Has Same Values !!!!"); } } // Init Data m_RuntimeParam = new AERuntimeParam(); }