hint增加延迟关闭
This commit is contained in:
parent
ebcbb82d4c
commit
e1de33b896
@ -45,7 +45,17 @@ namespace QFramework
|
||||
data.time = time;
|
||||
data.isShowIcon = showIcon;
|
||||
data.audio = audio;
|
||||
UIKit.OpenPanelAsync<UIHint>(uiData: data, canvasLevel: UILevel.PopUI).ToAction().StartGlobal(() => this.Finish());
|
||||
UIKit.OpenPanelAsync<UIHint>(uiData: data, canvasLevel: UILevel.PopUI).ToAction().StartGlobal(() =>
|
||||
{
|
||||
if (data.time != -1)
|
||||
{
|
||||
ActionKit.Delay(data.time, () => this.Finish()).StartGlobal();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Finish();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void OnExecute(float dt)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user