Merge branch 'master' into LouDi_Quan

This commit is contained in:
shenjianxing 2025-01-15 17:41:01 +08:00
commit 8668f5f531

View File

@ -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)