UIEnterCode.cs 604 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. using System.Collections;
  3. public class UIEnterCode : MonoBehaviour {
  4. //[SerializeField]
  5. //private UIButton Home;
  6. void Start()
  7. {
  8. //Home.onClick.Add(new EventDelegate(OnHome));
  9. #if UNITY_ANDROID
  10. // Init();
  11. #endif
  12. #if UNITY_IPHONE
  13. //gameObject.AddComponent<GCLeaderBoard>();
  14. Debug.Log("UILeaderBoard::Started");
  15. #endif
  16. }
  17. public void OnClick()
  18. {
  19. Debug.Log(".CloseMenu(NGUIMenuScript.NGUIMenus.EnterCode);");
  20. NGUIMenuScript.Instance.CloseMenu(NGUIMenuScript.NGUIMenus.EnterCode);
  21. NGUIMenuScript.Instance.ShowMenu(NGUIMenuScript.NGUIMenus.MainMenuNew);
  22. }
  23. }