private void Start() { if (instance) { Destroy(instance); } instance = this; }
private void Awake() { var _hole = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); flagURL = _hole + "\\OrX_icon.png"; OrXMissileTurret = _hole + "\\PluginData" + "\\VesselData" + "\\OrX" + "\\OrXMissileTurret.craft"; OrXCIWS = _hole + "\\PluginData" + "\\VesselData" + "\\OrX" + "\\OrXCIWS.craft"; OrXTMTSNBN = _hole + "\\PluginData" + "\\VesselData" + "\\OrX" + "\\OrXTMTSNBN.craft"; if (instance) { Destroy(instance); } instance = this; }