void Start() { if (SceneManager.GetActiveScene().name == "WorldCreator") { var path = System.IO.Path.Combine(Application.streamingAssetsPath, "Sectors", "TestWorld"); DeletePlaceholderDirectories(); if (Directory.Exists(path)) { generatorHandler.ReadWorld(path); #if UNITY_EDITOR if (instantTest) { TestWorld(); } #endif } } }
void Start() { if (SceneManager.GetActiveScene().name == "WorldCreator") { var path = Application.streamingAssetsPath + "\\Sectors\\TestWorld"; if (Directory.Exists(path)) { generatorHandler.ReadWorld(path); #if UNITY_EDITOR if (instantTest) { TestWorld(); } #endif } else { DeletePlaceholderDirectories(); } } }