void Update() { if (!readyPlaying && generator.IsDone()) { LoggerTool.Post("Generated with " + clock.Elapsed() + " seconds."); readyPlaying = true; if (overviewCam) { overviewCam.SetActive(false); } curtain.FadeToColour(Color.clear); } }
void Update() { if (Input.GetButtonDown("Fire1")) { LoggerTool.Post("Start generating island from a click"); bool prevRandSet = islandGenerator.useRandomSeed; islandGenerator.useRandomSeed = useRandomSeed; startedRecording = true; clock.Start(); islandGenerator.GenerateIsland(); islandGenerator.useRandomSeed = prevRandSet; } if (startedRecording && islandGenerator.IsDone()) { startedRecording = false; LoggerTool.Post("Generated with " + clock.Elapsed() + " seconds."); LoggerTool.Post(" ----------------------- "); } }