Cc.targetedAction报错

专业提交bug
Thu, 01 Sep 2016 08:38:08 +0000

粘贴的图像767×62 3.1 KB

代码就一句话：

cc.Class({
    extends: cc.Component,

    properties: {
        sprite: {
            default: null,
            type: cc.Node
        }
    },

    // use this for initialization
    onLoad: function () {
        this.node.runAction(cc.sequence(cc.delayTime(1), cc.targetedAction(this.sprite, cc.hide())));
    },
});

阅读整个主题