美文网首页
sc17 萝卜地预制体使用方法

sc17 萝卜地预制体使用方法

作者: 记忆中风景 | 来源:发表于2019-02-24 10:12 被阅读0次

    预制体和相应的脚本都在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)

    相关文章

      网友评论

          本文标题:sc17 萝卜地预制体使用方法

          本文链接:https://www.haomeiwen.com/subject/rhterqtx.html