Created
August 8, 2015 22:52
-
-
Save jcguarinpenaranda/077eab0cfe89cb62e2d5 to your computer and use it in GitHub Desktop.
Load a scene in Unity 3d
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 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