Beispiel #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open Window"))
     {
         L004Window.OpenWindow();
     }
 }
Beispiel #2
0
 public static void OpenWindow()
 {
     if (instance == null)
     {
         instance          = (L004Window)ScriptableObject.CreateInstance <L004Window>();
         instance.position = new Rect(500, 300, 600, 400);
     }
     instance.ShowPopup();
     instance.Focus();
 }
Beispiel #3
0
 public static void OpenWindow()
 {
     if (instance == null)
     {
         instance = (L004Window)ScriptableObject.CreateInstance<L004Window>();
         instance.position = new Rect(500, 300, 600, 400);
     }
     instance.ShowPopup();
     instance.Focus();
 }