Commit ea292145 authored by limingzhe's avatar limingzhe

fix: debug

parent e7e0aade
...@@ -130,7 +130,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -130,7 +130,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (Game.getIns().title) { if (Game.getIns().title) {
const titleLabel = cc.find("Canvas/layout_info/bg_title/title").getComponent(cc.Label); const labelNode = cc.find("layout_info/bg_title/title", this.node);
const titleLabel = labelNode.getComponent(cc.Label);
if (titleLabel) { if (titleLabel) {
titleLabel.string = Game.getIns().title; 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