update
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
import { _decorator, Component } from 'cc'
|
||||
import { Component, _decorator } from 'cc'
|
||||
|
||||
const { ccclass, property } = _decorator
|
||||
|
||||
@ccclass('UIRoot')
|
||||
export class UIRoot extends Component {
|
||||
public static Instance: UIRoot
|
||||
onLoad() {
|
||||
UIRoot.Instance = this
|
||||
}
|
||||
onDestroy() {
|
||||
UIRoot.Instance = null
|
||||
}
|
||||
public static Instance: UIRoot
|
||||
|
||||
onLoad() {
|
||||
UIRoot.Instance = this
|
||||
}
|
||||
|
||||
onDestroy() {
|
||||
UIRoot.Instance = null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user