

預(yù)制體和相應(yīng)的腳本都在sc17的share文件夾中。
此預(yù)制體搭配js文件可以完成以下功能:
? ? ? ? ? ? ? ? ? ? 1、從蘿卜坑位數(shù)組中依次顯示指定數(shù)量的蘿卜? ??showCarrot(slots, quantity, prohibitDrag, prohibitDrop, complete, duration)
? ? ? ? ? ? ? ? ? ? 2、從蘿卜坑位數(shù)組中同時(shí)顯示指定數(shù)量的蘿卜??showCarrotMeanWhile(slots, quantity, prohibitDrag, prohibitDrop, complete, duration)
? ? ? ? ? ? ? ? ? ? 3、當(dāng)有蘿卜被拖拽到蘿卜坑位附近時(shí)觸發(fā)drop函數(shù)時(shí)蘿卜進(jìn)入坑位的位移效果? ??carrotAlight(item, area, complete)
? ? ? ? ? ? ? ? ? ? 4、將指定坑位中的蘿卜移動到指定位置? ??carrotComeOut(slot, outPos, duration, complete, isChild)
? ? ? ? ? ? ? ? ? ? 5、指定坑位的蘿卜閃一閃? ? ?carrotBlink(slot, complete, opacity, repeats, duration)