Commit 2fa03417 authored by 范雪寒's avatar 范雪寒

fix: 点击红点之前文字消失

parent 86044a57
......@@ -12,7 +12,8 @@ export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
onLoad () {
onLoad() {
this.text.active = false;
this.doc.on(cc.Node.EventType.TOUCH_START,()=>{
this.doc.active = false;
this.text.active = true;
......
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