123456789101112131415161718192021222324252627282930 |
- /*
- * FUNCTION: Handles what happens when the Settings button is tapped.
- * The button is located in the Main Menu.
- * */
- using UnityEngine;
- using System.Collections;
- public class SettingsNewButtonHandler : MonoBehaviour
- {
- private NGUIMenuScript hNGUIMenuScript;
- void Start ()
- {
- hNGUIMenuScript = (NGUIMenuScript)GameObject.Find("UI Root (2D)").GetComponent(typeof(NGUIMenuScript));
- }
-
- void OnClick ()
- {
- hNGUIMenuScript.ShowMenu(NGUIMenuScript.NGUIMenus.Settings);
- NGUITools.SetActive(this.transform.parent.gameObject, false);
- NameSanta.text = RegistrationManager.Instance.CurName;
- //Debug.Log(RegistrationManager.Instance.CurName);
- }
- public UILabel NameSanta;
-
- }
|