InstructionHandler.cs 429 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System.Collections;
  3. public class InstructionHandler : MonoBehaviour {
  4. private NGUIMenuScript hNGUIMenuScript;
  5. void Start()
  6. {
  7. hNGUIMenuScript = (NGUIMenuScript)GameObject.Find("UI Root (2D)").GetComponent(typeof(NGUIMenuScript));
  8. }
  9. void OnClick()
  10. {
  11. hNGUIMenuScript.ShowMenu(NGUIMenuScript.NGUIMenus.InstructionsMenu);
  12. NGUITools.SetActive(this.transform.parent.gameObject, false);
  13. }
  14. }