123456789101112131415161718 |
- using UnityEngine;
- using System.Collections;
- public class InstructionHandler : MonoBehaviour {
- private NGUIMenuScript hNGUIMenuScript;
- void Start()
- {
- hNGUIMenuScript = (NGUIMenuScript)GameObject.Find("UI Root (2D)").GetComponent(typeof(NGUIMenuScript));
- }
-
- void OnClick()
- {
- hNGUIMenuScript.ShowMenu(NGUIMenuScript.NGUIMenus.InstructionsMenu);
- NGUITools.SetActive(this.transform.parent.gameObject, false);
- }
- }
|