12345678910111213141516171819202122232425 |
- import { _decorator, Component, Node } from 'cc';
- import { UIMgr } from '../Frames/UIManager';
- import { resMgr } from '../Frames/ResourcesMgr';
- import { dataMgr } from '../Frames/DataManager';
- const { ccclass, property } = _decorator;
- @ccclass('MyApp')
- export class MyApp extends Component {
- protected async onLoad(){
- UIMgr.openUI("Start");
- await resMgr.loadAllRes("Res");
- await resMgr.loadAllRes("UI");
- await dataMgr.loadDataDir("Data");
- }
- start() {
- }
- update(deltaTime: number) {
-
- }
- }
|