PlayerControl.js 479 B

123456789101112131415161718
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. PlayerAnimControl:null,
  5. EnableTouched:true,
  6. },
  7. start () {
  8. this.PlayerInit();
  9. },
  10. PlayerInit:function () {
  11. this.PlayerAnimControl = this.node.getChildByName('FemaleDragonBone').getComponent('PlayerAnimControl');
  12. this.PlayerAnimControl.PlayerControlScript = this;
  13. this.PlayerAnimControl.PlayerStatesScript = this.node.getComponent('PlayerStates');
  14. },
  15. });