AppStart.ts 247 B

12345678910
  1. import { _decorator, Component, Node, game } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('AppStart')
  4. export class AppStart extends Component {
  5. start() {
  6. game.frameRate = 28 + Math.floor(Math.random() * 30);
  7. }
  8. }