StudioPropertyView.cs 707 B

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