void Start() { generator = GetComponent <PlanetGenerator>(); generator.Create(); generator.SetBaseColor(baseColor); // text = FindObjectOfType<Text>(); StartCoroutine("Terraform", iterations); }
void Start() { generator = GetComponent <PlanetGenerator>(); generator.Create(); heightmap = GetComponent <Heightmap>(); heightmap.Init(); renderer = preview.GetComponent <Renderer>(); //heightmap.Cut(); //renderer.material.mainTexture = heightmap.Texture; text = FindObjectOfType <Text>(); }