Commit 22cf2ee9 authored by yu's avatar yu

10.13调整

parent 723309df
......@@ -214,7 +214,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
iData.y = item.y;
item.data = iData;
let word = cc.find("word", item);
word.getComponent(cc.Label).string = c_d;
word.getComponent(cc.Label).string = c_d || "";
word.active = false;
this.wordItams.push(item);
let bData: any = {};
......@@ -222,6 +222,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
bData.parent = word.parent;
bData.startPos = word.getPosition();
word.data = bData;
word.off(cc.Node.EventType.TOUCH_START, this.onBridgeStart, this);
word.off(cc.Node.EventType.TOUCH_MOVE, this.onBridgeMove, this);
word.off(cc.Node.EventType.TOUCH_END, this.onBridgeEnd, this);
word.on(cc.Node.EventType.TOUCH_START, this.onBridgeStart, this);
word.on(cc.Node.EventType.TOUCH_MOVE, this.onBridgeMove, this);
word.on(cc.Node.EventType.TOUCH_END, this.onBridgeEnd, this);
......@@ -331,7 +334,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let word = cc.find("word", itemBg);
word.active = true;
// word.getComponent(cc.Label).string = data.text;
word.getComponent(cc.Label).string = data.text;
word.data.CParent = data.parent;
this.playLocalAudio("move")
......
{
"ver": "1.1.2",
"uuid": "f2fd0396-7690-4e94-9d7e-3bb02dad8656",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
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