cc.Class({ extends: cc.Component, properties: { PlayerAnimControl:null, EnableTouched:true, }, start () { this.PlayerInit(); }, PlayerInit:function () { this.PlayerAnimControl = this.node.getChildByName('FemaleDragonBone').getComponent('PlayerAnimControl'); this.PlayerAnimControl.PlayerControlScript = this; this.PlayerAnimControl.PlayerStatesScript = this.node.getComponent('PlayerStates'); }, });