MyApp.ts 337 B

1234567891011121314151617181920
  1. import { _decorator, Component, Node } from 'cc';
  2. import { UIMgr } from '../Frames/UIManager';
  3. const { ccclass, property } = _decorator;
  4. @ccclass('MyApp')
  5. export class MyApp extends Component {
  6. protected onLoad(): void {
  7. UIMgr.openUI("Start");
  8. }
  9. start() {
  10. }
  11. update(deltaTime: number) {
  12. }
  13. }