private void Start() { instance = this; if (config == null) { config = KSP.IO.PluginConfiguration.CreateForType <LINEARWindow>(); } config.load(); windowRect = config.GetValue("windowRect", new Rect(500, 500, 300, 0)); config["windowRect"] = windowRect; }
private void OnDestroy() { instance = null; }