bool m_havePlay = false; //播放过

        public static void OnOpenWnd(Handle.WndType wnd, object param)
        {
            if (wnd == Handle.WndType.sequenceEditor)
            {
                HandleSequenceWindow.ShowWnd(param);
            }
        }
예제 #2
0
        public static void ShowWnd(Component c, Handle h)
        {
            if (c == null || h == null)
            {
                Debuger.LogError("打开处理序列编辑器的参数为空");
                return;
            }

            HandleSequenceWindow wnd = (HandleSequenceWindow)EditorWindow.GetWindow(typeof(HandleSequenceWindow));

            wnd.m_comp                   = c;
            wnd.m_handle                 = h;
            wnd.titleContent             = new GUIContent("处理序列编辑器");
            wnd.minSize                  = new Vector2(750.0f, 400f);
            wnd.autoRepaintOnSceneChange = true;
        }