Skip to content

UIFrame 1.1.6

Compare
Choose a tag to compare
@feifeid47 feifeid47 released this 10 Mar 15:58
· 4 commits to main since this release

Added

  • 新增Timer定时器
# 使用UIFrame创建定时器
UITimer timer = UIFrame.CreateTimer(0.3f, () => { }, isLoop = true);
# 取消定时器
timer.Cancel();

# UIBase中的创建定时器
class TestUI: UIBase
{
    protected override Task OnCreate()
    {
        # 创建定时器gameObject被销毁时会自动Cancel
        var timer = this.CreateTimer(0.3f, () => { }, isLoop: true);
        return Task.CompletedTask;
    }
}