private void ChoiceSection(int i) { UIKit.HidePanel(name); UIKit.OpenPanel <UIGamePanel>(UILevel.Common, new UIGamePanelData { SectionNo = i + 1 }, prefabName: "Resources/UIGamePanel"); }
public void UIKit_ShowPanelTest() { ResKit.Init(); var uiKitTestPanel = UIKit.OpenPanel <UIKitTestPanel>(); Assert.AreEqual(uiKitTestPanel.Data.OnShowCalledCount, 1); UIKit.ShowPanel <UIKitTestPanel>(); Assert.AreEqual(uiKitTestPanel.Data.OnShowCalledCount, 2); UIKit.HidePanel <UIKitTestPanel>(); UIKit.ShowPanel <UIKitTestPanel>(); Assert.AreEqual(uiKitTestPanel.Data.OnShowCalledCount, 3); UIKit.CloseAllPanel(); }