| 12345678910111213141516171819202122232425 |
- import { _decorator, Component, Node } from 'cc';
- import { Window } from '../core/ui/window/Window';
- const { ccclass, property } = _decorator;
- @ccclass('LoginWaitWin')
- export class LoginWaitWin extends Component {
- start() {
- // [3]
- }
- private isClose = false;
- //关闭加载等待窗口
- public close() {
- this.isClose = true;
- }
- update() {
- if (this.isClose) {
- let _window = this.getComponent(Window);
- _window.forceClose();
- }
- }
- }
|