Пример #1
0
    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
            }
        }
    }
Пример #2
0
 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();
         }
     }
 }