protected void Awake() { try { if (instance != null) { Destroy(this); return; } instance = this; buildOverlayPartInfo = this.gameObject.AddComponent <BuildOverlayPartInfo>(); buildOverlayVessel = this.gameObject.AddComponent <BuildOverlayVessel>(); buildOverlayResources = this.gameObject.AddComponent <BuildOverlayResources>(); Load(); } catch (Exception ex) { MyLogger.Exception(ex); } }
protected void Awake() { try { if (instance != null) { Destroy(this); return; } instance = this; buildOverlayPartInfo = this.gameObject.AddComponent<BuildOverlayPartInfo>(); buildOverlayVessel = this.gameObject.AddComponent<BuildOverlayVessel>(); buildOverlayResources = this.gameObject.AddComponent<BuildOverlayResources>(); Load(); } catch (Exception ex) { Logger.Exception(ex); } }