Ejemplo n.º 1
0
 /// <summary>
 /// Hide this instance.
 /// </summary>
 public static void Hide()
 {
     if (window != null)
     {
         window.Close();
         window = null;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Open the specified pos.
        /// </summary>
        public static void Open()
        {
            float width  = 1024;
            float height = Screen.currentResolution.height - 100;
            float x      = Screen.currentResolution.width - width;
            float y      = 25;
            Rect  size   = new Rect(x, y, width, height);

            if (window == null)
            {
                window = (SkillsEditorWindow)EditorWindow.GetWindowWithRect(typeof(SkillsEditorWindow), size, true, "武功招式编辑器");
            }
            window.Show();
            window.position = size;
            getData();
        }