Last active
December 3, 2015 19:39
-
-
Save seaders/98dca65551ad677c408d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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