squidGame/tgx-games-client/assets/module_basic/scripts/AppStart.ts

11 lines
247 B
TypeScript
Raw Permalink Normal View History

2025-02-07 10:49:34 +08:00
import { _decorator, Component, Node, game } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('AppStart')
export class AppStart extends Component {
start() {
game.frameRate = 28 + Math.floor(Math.random() * 30);
}
}