QieHuanView.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using UI.Login;
  2. using UnityEngine;
  3. using FairyGUI;
  4. namespace GFGGame
  5. {
  6. public class QieHuanView : BaseWindow
  7. {
  8. private UI_QieHuanUI _ui;
  9. public override void Dispose()
  10. {
  11. if (_ui != null)
  12. {
  13. _ui.Dispose();
  14. _ui = null;
  15. }
  16. base.Dispose();
  17. }
  18. protected override void OnInit()
  19. {
  20. base.OnInit();
  21. packageName = UI_QieHuanUI.PACKAGE_NAME;
  22. _ui = UI_QieHuanUI.Create();
  23. this.viewCom = _ui.target;
  24. this.viewCom.Center();
  25. this.modal = true;
  26. _ui.m_btnSubmit.onClick.Add(OnClickBtnSubmit);
  27. _ui.m_btnDow.onClick.Add(OnClickBtnDow);
  28. }
  29. protected override void OnShown()
  30. {
  31. base.OnShown();
  32. }
  33. protected override void OnHide()
  34. {
  35. base.OnHide();
  36. }
  37. private void OnClickBtnDow()
  38. {
  39. Application.OpenURL("https://cdn.goufuguiwxw.com/Apk/万世镜.apk");
  40. }
  41. private void OnClickBtnSubmit()
  42. {
  43. ViewManager.Show<RoleInfoRegisterView>();
  44. }
  45. }
  46. }