2-66. 制作石头和稻草的粒子特效
上节课场景的布置

石头的碰撞范围需要改成 Polygon Collider 2D

给石头添加粒子特效
添加 Particle System

Renderer

Texture Sheet Animation

Normal


Emission

Shape


Velocity over Lifetime

Color over Lifetime

Rotation over Lifetime

石头粒子效果做成预制体

修改 Crop Data List_SO

修改 Pool Manager


添加 Reap Particle
复制一下 Rock Particle,重命名为 Reap Particle

Texture Sheet Animation

Shape

Normal

修改 Pool Manager


添加杂草





创建 Grass01
通过 CropBase 创建 Prefab Variant



注意需要修改 Trigger 范围
创建 Grass02


注意需要修改 Trigger 范围
创建 Grass03

接着把 Grass01、Grass02、Grass03 里面的 Crop 和 Crop Generator 移除掉,添加 Item

注意需要修改 Trigger 范围
修改 Crop Data List_SO




浙公网安备 33010602011771号