private static void ShowWindow() { positiveImage = Resources.Load <Sprite>("FloatingBar"); negativeImage = Resources.Load <Sprite>("FloatingBar"); FloatingBarsCreateWindow window = (FloatingBarsCreateWindow)GetWindow(typeof(FloatingBarsCreateWindow)); window.minSize = new Vector2(400, 400); window.titleContent = new GUIContent("Create Bar"); window.Show(); }
private static void ShowEditWindow() { SaveDatas(); isOnEditMode = true; FloatingBarsCreateWindow window = (FloatingBarsCreateWindow)GetWindow(typeof(FloatingBarsCreateWindow)); window.minSize = new Vector2(400, 400); window.titleContent = new GUIContent("Edit Bar"); window.Show(); }