private void Awake() { if (Instance != null) { DestroyImmediate(this); return; } Instance = this; DontDestroyOnLoad(gameObject); cachePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "GameData" + Path.DirectorySeparatorChar + "ModuleManager.ConfigCache"; techTreeFile = "GameData" + Path.DirectorySeparatorChar + "ModuleManager.TechTree"; techTreePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + techTreeFile; physicsFile = "GameData" + Path.DirectorySeparatorChar + "ModuleManager.Physics"; physicsPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + physicsFile; defaultPhysicsPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "Physics.cfg"; partDatabasePath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "PartDatabase.cfg"; shaPath = KSPUtil.ApplicationRootPath + Path.DirectorySeparatorChar + "GameData" + Path.DirectorySeparatorChar + "ModuleManager.ConfigSHA"; }
private void Awake() { if (Instance != null) { DestroyImmediate(this); return; } Instance = this; DontDestroyOnLoad(gameObject); }