示例#1
0
    void Start()
    {
        generator = GetComponent <PlanetGenerator>();
        generator.Create();
        generator.SetBaseColor(baseColor);

        // text = FindObjectOfType<Text>();

        StartCoroutine("Terraform", iterations);
    }
示例#2
0
    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>();
    }