完善 docs

This commit is contained in:
SmallMain
2022-06-21 18:09:15 +08:00
parent dec6f5b84a
commit 3c3245f0a9
16 changed files with 3026 additions and 25 deletions

View File

@@ -31,8 +31,8 @@ export default class SpineSkin extends cc.Component {
this.addBoyBtn.on('click', () => {
const newBoy = cc.instantiate(this.boy);
const newBoySpine = newBoy.getComponentInChildren(sp.Skeleton);
boySpine.skeletonData = newBoySpine.skeletonData.clone();
boySpine.animation = 'attack';
newBoySpine.skeletonData = boySpine.skeletonData.clone();
newBoySpine.animation = 'attack';
this.boy.parent.addChild(newBoy);
newBoy.setPosition(this.boys[this.boys.length - 1].position);