Answers for "how to use the waitforseconds unity"

C#
6

waitforseconds unity

public void GameOver()
		{
			//Set levelText to display number of levels passed and game over message
			levelText.text = "After " + level + " months, you starved.";

			new WaitForSeconds(6);

			Application.Quit();


		}
Posted by: Guest on June-05-2020

Code answers related to "how to use the waitforseconds unity"

C# Answers by Framework

Browse Popular Code Answers by Language