| 1234567891011121314151617181920212223242526272829303132 |
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class Main extends cc.Component {
- @property({
- type: cc.Asset,
- })
- mainfestUrl: cc.Asset = null;
- start() {
- console.log("init");
- mk.ui.openPanel("module/login/login");
- this.testnew()
- }
- async testnew() {
- let aa = '11111111 '
- aa = await this.test();
- console.log(aa);
- setTimeout(() => {
- console.log(aa)
- }, 5000)
- }
- async test() {
- let aa = '2222222222'
- await mk.time.WaitForSeconds(1);
- return aa;
- }
- }
|