MainBgChooseTipsView.cs 772 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections;
  2. using UnityEngine;
  3. using UI.RoleInfo;
  4. namespace GFGGame
  5. {
  6. public class MainBgChooseTipsView : BaseWindow
  7. {
  8. private UI_MainBgChooseTipsUI _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_MainBgChooseTipsUI.PACKAGE_NAME;
  22. _ui = UI_MainBgChooseTipsUI.Create();
  23. this.viewCom = _ui.target;
  24. this.viewCom.Center();
  25. this.modal = true;
  26. viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
  27. }
  28. }
  29. }