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(); }