Commit 9e684c8c authored by limingzhe's avatar limingzhe

fix: debug

parent 7ee1f2a5
......@@ -130,7 +130,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (Game.getIns().title) {
cc.find("layout_info/bg_title/title", this.node).getComponent(cc.Label).string = Game.getIns().title;
const titleLabel = cc.find("layout_info/bg_title/title", this.node).getComponent(cc.Label);
if (titleLabel) {
titleLabel.string = Game.getIns().title;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment