Skip to content

Instantly share code, notes, and snippets.

@jcguarinpenaranda
Created August 8, 2015 22:52
Show Gist options
  • Save jcguarinpenaranda/077eab0cfe89cb62e2d5 to your computer and use it in GitHub Desktop.
Save jcguarinpenaranda/077eab0cfe89cb62e2d5 to your computer and use it in GitHub Desktop.
Load a scene in Unity 3d
using UnityEngine;
using System.Collections;
public class LoadScene : MonoBehaviour {
public GameObject loadingImage;
public void LoadScene(int level)
{
loadingImage.SetActive(true);
Application.LoadLevel(level);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment