MatchingCompetitionLookView.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. using ET;
  5. using FairyGUI;
  6. using UI.MatchingCompetition;
  7. using UnityEngine;
  8. namespace GFGGame
  9. {
  10. class MatchingCompetitionLookView : BaseWindow
  11. {
  12. private UI_MatchingCompetitionLookUI _ui;
  13. public override void Dispose()
  14. {
  15. if (_ui != null)
  16. {
  17. _ui.Dispose();
  18. }
  19. _ui = null;
  20. base.Dispose();
  21. }
  22. protected override void OnInit()
  23. {
  24. base.OnInit();
  25. packageName = UI_MatchingCompetitionLookUI.PACKAGE_NAME;
  26. _ui = UI_MatchingCompetitionLookUI.Create();
  27. this.viewCom = _ui.target;
  28. isReturnView = true;
  29. isfullScreen = true;
  30. _ui.m_BtnBack.onClick.Add(OnClickBtnBack);
  31. }
  32. protected override void OnShown()
  33. {
  34. base.OnShown();
  35. _ui.m_bg.url = ResPathUtil.GetBgImgPath("pxs_bj");
  36. _ui.m_playerImage.texture = MatchingCompetitionDataManager.Instance.MyNtextture;
  37. }
  38. protected override void OnHide()
  39. {
  40. base.OnHide();
  41. }
  42. private void OnClickBtnBack()
  43. {
  44. ViewManager.GoBackFrom(typeof(MatchingCompetitionLookView).FullName);
  45. }
  46. }
  47. }