Skip to content

Instantly share code, notes, and snippets.

@OutlawGameTools
Created September 5, 2015 03:52
Show Gist options
  • Save OutlawGameTools/ec0c128e5e1ec4e2af2c to your computer and use it in GitHub Desktop.
Save OutlawGameTools/ec0c128e5e1ec4e2af2c to your computer and use it in GitHub Desktop.
Use on a UI button click event to go to another scene.
using UnityEngine;
using System.Collections;
public class GoToSceneButton : MonoBehaviour {
public void GoToScene(string sceneName)
{
Application.LoadLevel (sceneName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment