Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();


		}
 
PREVIOUS NEXT
Tagged: #waitforseconds #unity
ADD COMMENT
Topic
Name
5+9 =