public void Start() { this.control = new KRSVesselShot(); this.windowSize = new Rect(256f, 50f, 300f, Screen.height - 50f); this.tabNames = new string[] { "View", "Config" }; this.tabGUI = new Action[] { GUITabView, GUITabConfig }; this.control.Config.onApply += ConfigApplied; this.control.Config.onRevert += ConfigReverted; EditorLogic.fetch.editorCamera.gameObject.AddComponent<KRSEditorAxis>(); }
public void Start() { this.control = new KRSVesselShot(); this.windowSize = new Rect(256f, 50f, 300f, Screen.height - 50f); this.tabNames = new string[] { "View", "Config" }; this.tabGUI = new Action[] { GUITabView, GUITabConfig }; this.control.Config.onApply += ConfigApplied; this.control.Config.onRevert += ConfigReverted; EditorLogic.fetch.editorCamera.gameObject.AddComponent <KRSEditorAxis>(); }