UICongratulations.cs 541 B

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