Last active
December 3, 2015 19:39
This file contains hidden or 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