StudioFabricView.cs 721 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using FairyGUI;
  2. using UI.Studio;
  3. namespace GFGGame
  4. {
  5. //织物副本
  6. public class StudioFabricView : StudioBaseView
  7. {
  8. public override void Dispose()
  9. {
  10. base.Dispose();
  11. }
  12. protected override void OnInit()
  13. {
  14. base.OnInit();
  15. _ui.m_btnBack.onClick.Add(OnClickBtnBack);
  16. }
  17. protected override void OnShown()
  18. {
  19. base.OnShown();
  20. _ui.m_c1.selectedIndex = 0;
  21. }
  22. protected override void OnHide()
  23. {
  24. base.OnHide();
  25. }
  26. private void OnClickBtnBack()
  27. {
  28. ViewManager.GoBackFrom(typeof(StudioFabricView).FullName);
  29. }
  30. }
  31. }