From 7191be38b6eab0b527a6a5e0cbb2d008c755fe78 Mon Sep 17 00:00:00 2001 From: yu <www.437551922@qq.com> Date: Fri, 25 Nov 2022 21:23:58 +0800 Subject: [PATCH] 1 --- assets/op72_plus/scene/tool/Game.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/op72_plus/scene/tool/Game.ts b/assets/op72_plus/scene/tool/Game.ts index 7099ccd..0d21f19 100644 --- a/assets/op72_plus/scene/tool/Game.ts +++ b/assets/op72_plus/scene/tool/Game.ts @@ -172,13 +172,13 @@ export default class Game { this.page = 1; this.start = true; this.lists = []; + this.data.sort(function () { + return (0.5 - Math.random()); + }); for (let i = 0; i < this.data.length; i++) { let data = this.data[i]; this.lists.push(new Option(data, i + 1)); } - this.lists.sort(function () { - return (0.5 - Math.random()); - }); this.state = GAME_STATE.WAIT; this.total = this.lists.length; } -- 2.21.0