1234567891011121314151617181920212223242526 |
- using UnityEngine;
- using System.Collections;
- public class UICristmasTree : MonoBehaviour
- {
- public UIButton ButtonCristmasTree;
- void Start()
- {
- ButtonCristmasTree.onClick.Add(new EventDelegate(OnHome));
- #if UNITY_ANDROID
- //Init();
- #endif
- #if UNITY_IPHONE
- //gameObject.AddComponent<GCLeaderBoard>();
- Debug.Log("UILeaderBoard::Started");
- #endif
- }
- private void OnHome()
- {
- NGUIMenuScript.Instance.CloseMenu(NGUIMenuScript.NGUIMenus.CreastmasTree);
- NGUIMenuScript.Instance.ShowMenu(NGUIMenuScript.NGUIMenus.MainMenuNew);
- }
- }
|