/**把自身变为绿色 */
event.target.getComponent(cc.Sprite).spriteFrame = PrefabBase.ins.pngs[1]
this.index当前使用皮肤索引 = Number(event.target.name)
cc.sys.localStorage.setItem("pifuIndex", this.index当前使用皮肤索引 + "")
console.error("更换后的皮肤索引为 " + this.index当前使用皮肤索引)
/**修改人物动画 */
let bigPeople = cc.find(Road.ShopPage_People上方大人_预制体下相对路径, shopPage)
let ani1 = bigPeople.getComponent(cc.Animation)
let clips = ani1.getClips()
clips[0] = PrefabBase.ins.aniclipList[this.index当前使用皮肤索引][0]
ani1.defaultClip = PrefabBase.ins.aniclipList[this.index当前使用皮肤索引][0]
ani1.play()
点击皮肤 更换皮肤 并修改展示所用的动画 这样写有问题吗???????????
依然是播放原来的动画
真的是头大
