ActivityThemeLuckyBoxTaskView.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using ET;
  2. using FairyGUI;
  3. using UI.ActivityThemeLuckyBox;
  4. using UnityEngine;
  5. namespace GFGGame
  6. {
  7. public class ActivityThemeLuckyBoxTaskView : BaseWindow
  8. {
  9. private UI_ActivityThemeLuckyBoxTaskUI _ui;
  10. public override void Dispose()
  11. {
  12. if (_ui != null)
  13. {
  14. _ui.Dispose();
  15. _ui = null;
  16. }
  17. base.Dispose();
  18. }
  19. protected override void OnInit()
  20. {
  21. base.OnInit();
  22. packageName = UI_ActivityThemeLuckyBoxTaskUI.PACKAGE_NAME;
  23. _ui = UI_ActivityThemeLuckyBoxTaskUI.Create();
  24. this.viewCom = _ui.target;
  25. this.viewCom.Center();
  26. this.modal = true;
  27. viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
  28. }
  29. protected override void AddEventListener()
  30. {
  31. base.AddEventListener();
  32. }
  33. protected override void OnShown()
  34. {
  35. base.OnShown();
  36. }
  37. protected override void OnHide()
  38. {
  39. base.OnHide();
  40. }
  41. protected override void RemoveEventListener()
  42. {
  43. base.RemoveEventListener();
  44. }
  45. }
  46. }