UICristmasTree.cs 552 B

1234567891011121314151617181920212223242526
  1. using UnityEngine;
  2. using System.Collections;
  3. public class UICristmasTree : MonoBehaviour
  4. {
  5. public UIButton ButtonCristmasTree;
  6. void Start()
  7. {
  8. ButtonCristmasTree.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.CreastmasTree);
  20. NGUIMenuScript.Instance.ShowMenu(NGUIMenuScript.NGUIMenus.MainMenuNew);
  21. }
  22. }