sc17 蘿卜地預(yù)制體使用方法

預(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)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容