UISendSMS.cs 530 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. using System.Collections;
  3. public class UISendSMS : 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. private void OnHome()
  18. {
  19. NGUIMenuScript.Instance.CloseMenu(NGUIMenuScript.NGUIMenus.SendSms);
  20. NGUIMenuScript.Instance.ShowMenu(NGUIMenuScript.NGUIMenus.MainMenuNew);
  21. }
  22. }