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