Waiting before switching scenes

How can I wait 5 seconds before switching scenes? My code currently is:

	def OnTriggerEnter(collisionInfo as Collider) as void:
		if collisionInfo.tag == "Player":
			Application.LoadLevel("wingame")

1 Answer

1

Add a coroutine that simply yield return new WaitForSeconds()

See this link: