using UnityEngine; using UnityEngine.UI; using System.Collections; namespace Gamestrap { /// /// Script registers itself to the Buttons event on click and then calls the GSApplExample to do the transition automatically /// [RequireComponent(typeof(Button))] public class SceneTransitionsButton : MonoBehaviour { public ESceneNames sceneName; void Start() { //Register a Unity action to the button component GetComponent