首次提交
This commit is contained in:
20
Assets/Plugins/FairyGUI/Examples/ModalWaiting/Window4.cs
Normal file
20
Assets/Plugins/FairyGUI/Examples/ModalWaiting/Window4.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using FairyGUI;
|
||||
|
||||
public class Window4 : Window
|
||||
{
|
||||
public Window4()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
this.contentPane = UIPackage.CreateObject("ModalWaiting", "TestWin").asCom;
|
||||
this.contentPane.GetChild("n1").onClick.Add(OnClick);
|
||||
}
|
||||
|
||||
void OnClick()
|
||||
{
|
||||
this.ShowModalWait();
|
||||
Timers.inst.Add(3, 1, (object param) => { this.CloseModalWait(); });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user