GameMain.ts 342 B

123456789101112131415161718192021222324
  1. import { _decorator, Component } from 'cc';
  2. const { ccclass, property } = _decorator;
  3. @ccclass('GameMain')
  4. export class GameMain extends Component {
  5. start() {
  6. }
  7. /**
  8. * 初始化逻辑
  9. * 每次GameManager.StartGame()时都会调用
  10. */
  11. initUI() {
  12. }
  13. update(deltaTime: number) {
  14. }
  15. }