预制体和相应的脚本都在sc17的share文件夹中。
此预制体搭配js文件可以完成以下功能:
1、从萝卜坑位数组中依次显示指定数量的萝卜 showCarrot(slots, quantity, prohibitDrag, prohibitDrop, complete, duration)
2、从萝卜坑位数组中同时显示指定数量的萝卜 showCarrotMeanWhile(slots, quantity, prohibitDrag, prohibitDrop, complete, duration)
3、当有萝卜被拖拽到萝卜坑位附近时触发drop函数时萝卜进入坑位的位移效果 carrotAlight(item, area, complete)
4、将指定坑位中的萝卜移动到指定位置 carrotComeOut(slot, outPos, duration, complete, isChild)
5、指定坑位的萝卜闪一闪 carrotBlink(slot, complete, opacity, repeats, duration)