public static MxMAnimationIdleSetWindow Inst() { if (m_inst == null) { m_inst = new MxMAnimationIdleSetWindow(); } return(m_inst); }
//=========================================================================================== /** * @brief * *********************************************************************************************/ public static void SetData(MxMAnimationIdleSet a_data) { if (a_data == null) { return; } m_idleSetData = a_data; MxMAnimationIdleSetWindow.SetData(m_idleSetData); m_nextAnimType = EMxMAnimtype.IdleSet; }
public static void ShowWindow() { m_compositeWindow = MxMAnimationClipCompositeWindow.Inst(); m_idleSetWindow = MxMAnimationIdleSetWindow.Inst(); m_blendSpaceWindow = MxMBlendSpaceWindow.Inst(); System.Type sceneType = System.Type.GetType("UnityEditor.SceneView, UnityEditor.dll"); System.Type gameType = System.Type.GetType("UnityEditor.GameView, UnityEditor.dll"); var dockTypes = new System.Type[] { typeof(MxMAnimationIdleSetWindow), typeof(MxMBlendSpaceWindow), sceneType, gameType }; EditorWindow editorWindow = EditorWindow.GetWindow <MxMAnimConfigWindow>("MxM Anim Config", true, dockTypes); editorWindow.minSize = new Vector2(100f, 50f); editorWindow.Show(); m_inst = (MxMAnimConfigWindow)editorWindow; MxMTaggingWindow.ShowWindow(); }