コード例 #1
0
        void OnGUI()
        {
            wantedName = EditorGUILayout.TextField("Airplane Name:", wantedName);
            if (GUILayout.Button("Create new Airplane"))
            {
                Airplane_SetupTools.BuildDefaultAirplane(wantedName);

                AirplaneSetup_Window.GetWindow <AirplaneSetup_Window>().Close();
            }
        }
コード例 #2
0
        public static void CreateNewAirplane()
        {
//            IP_Airplane_SetupTools.BuildDefaultAirplane("New Airplane");
            AirplaneSetup_Window.LaunchSetupWindow();
        }
コード例 #3
0
 public static void LaunchSetupWindow()
 {
     AirplaneSetup_Window.GetWindow(typeof(AirplaneSetup_Window), true, "Airplane Setup").Show();
 }