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")
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")
Add a coroutine that simply yield return new WaitForSeconds()
See this link: