void FindOrCreateSurfaceGenerator()
 {
     this.generator              = SurfaceGenerator.Instance;
     generator.OnChunkGenreated -= OnChunkGenerated;
     generator.OnChunkGenreated += OnChunkGenerated;
     terrainRoot = generator.Terrain;
     if (!generator.IsUseableInEditor)
     {
         generator.MakeUseableInEditor();
     }
 }
Ejemplo n.º 2
0
 private static void CreateInstance()
 {
     instance = new SurfaceGenerator();
     instance.Awake();
     instance.MakeUseableInEditor();
 }