12345678910111213141516171819202122232425 |
- using UnityEngine;
- using System.Collections;
- public class UICongratulations : MonoBehaviour {
- public UIButton ButtonHome;
- void Start()
- {
- ButtonHome.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.Congratulations);
- NGUIMenuScript.Instance.ShowMenu(NGUIMenuScript.NGUIMenus.MainMenuNew);
- }
- }
|