Skip to content

Instantly share code, notes, and snippets.

@seaders
Last active December 3, 2015 19:39
Show Gist options
  • Save seaders/98dca65551ad677c408d to your computer and use it in GitHub Desktop.
Save seaders/98dca65551ad677c408d to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class TestScript : MonoBehaviour
{
void Start()
{
StartCoroutine( waitForASec() );
}
IEnumerator waitForASec()
{
Debug.Log("waiting...");
yield return new WaitForSeconds(2.0f);
Debug.Log("waited long enough!");
Application.LoadLevel(SMBoltNetwork.SCENE_CLIENT_CHAR_CREATE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment