You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
362 B

  1. -- 扩展Track的一些功能
  2. function cc.BaseTrack:loadFromXmlNode(xmlNode)
  3. cc.Track.loadFromXmlNode(self , xmlNode);
  4. self:setBindSource(xmlNode.BindSource)
  5. self:setBindTarget(xmlNode.BindTarget)
  6. if xmlNode.SourceBone then
  7. self:setSourceBoneName(xmlNode.SourceBone)
  8. end
  9. if xmlNode.TargetBone then
  10. self:setTargetBoneName(xmlNode.TargetBone)
  11. end
  12. end