判空问题
This commit is contained in:
@@ -31,7 +31,7 @@ export class UIManager extends Laya.Script {
|
||||
|
||||
private UIRoot: Laya.Panel
|
||||
public getUIRoot(): Laya.Node {
|
||||
if (this.UIRoot == null) {
|
||||
if (!this.UIRoot) {
|
||||
this.UIRoot = this.owner.getChildByName("UIRoot") as Laya.Panel
|
||||
if (config.H_SCREEN) {
|
||||
this.UIRoot.width = config.DESIGN_HEIGHT
|
||||
|
||||
Reference in New Issue
Block a user