public void Generate() { Int32.TryParse(input[0].text, out continents); float.TryParse(input[1].text, out linear); float.TryParse(input[2].text, out angular); GenerateTectonics.GenerateContinents(continents, oceanPercentage, linear, angular); World.SetTexture(TextureType.Tectonic); StartCoroutine("Grow"); }
IEnumerator Grow() { bool growing = false; Debug.Log("Started Coroutine"); while (!growing) { growing = GenerateTectonics.GrowContinents(); World.SetTexture(TextureType.Tectonic); yield return(null); } World.SetTexture(TextureType.Tectonic); Debug.Log("Ended Coroutine"); }
public void GenerateElevation() { GenerateTectonics.GenerateElevation(1); }