public static void Open() { _revolverWindow = GetWindow <SushiRevolverWindow>(); _revolverWindow.minSize = new Vector2(1f, SushiDrawer.SushiHeight); _revolverWindow.titleContent = new GUIContent("へいらっしゃい"); _opened = true; RefreshView(_revolverWindow.position); }
private void OnGUI() { _num = EditorGUILayout.IntSlider("寿司の数", _num, 1, 20); _speed = EditorGUILayout.Slider("回転スピード", _speed, 1f, 10f); if (GUILayout.Button("注文")) { Save(); SushiRevolverWindow.RefreshFromSetting(); } }
private void OnDestroy() { _opened = false; _revolverWindow = null; }