From 5728a2d9389869a855779a34e2df440ec6224251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=A4=E6=9C=9B=E5=85=B0?= <109917116+ccccccggggg@users.noreply.github.com> Date: Sat, 19 Oct 2024 20:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/Wait 10s/main.js | 5 +++++ repo/js/Wait 10s/manifest.json | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 repo/js/Wait 10s/main.js create mode 100644 repo/js/Wait 10s/manifest.json diff --git a/repo/js/Wait 10s/main.js b/repo/js/Wait 10s/main.js new file mode 100644 index 00000000..be0d4e8d --- /dev/null +++ b/repo/js/Wait 10s/main.js @@ -0,0 +1,5 @@ +(async function () { + setGameMetrics(1920, 1080, 2); + await sleep(10000); // 转换时间单位,从20ms到秒 + log.info("等待了10秒"); +})(); \ No newline at end of file diff --git a/repo/js/Wait 10s/manifest.json b/repo/js/Wait 10s/manifest.json new file mode 100644 index 00000000..f4b2bd1e --- /dev/null +++ b/repo/js/Wait 10s/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "等待十秒", + "version": "1.0", + "description": "用于等待十秒", + "authors": [ + { + "name": "鹤望兰", + } + ], + "main": "main.js", +} \ No newline at end of file