hi
Use below mentioned code
using UnityEngine;
using System.Collections;
public class SCBlueButton : MonoBehaviour {
public void ModeSelect(){
StartCoroutine("Wait");
}
IEnumerator Wait()
{
yield return new WaitForSeconds(2);
Application.LoadLevel("SurveillanceModeSelectScreen");
}
}
2 can be changed to any value i.e the specific amount of time you want to wait before loading level.
↧