1、最开始我们在unity代码中取名为Flash on hit
2、然后我们看到enemy controller 属性中找到Flash on hit
3、 public Material bodyMaterial;值我们设置的材料
4、我们点击就可以从我们的资源库找到材料设置
5、public Gradient onHitBodyGradient;设置我们击中时的渐变颜色
6、最后一个我们设置闪烁的持续时间为0.125s
1、最开始我们在unity代码中取名为Flash on hit
2、然后我们看到enemy controller 属性中找到Flash on hit
3、 public Material bodyMaterial;值我们设置的材料
4、我们点击就可以从我们的资源库找到材料设置
5、public Gradient onHitBodyGradient;设置我们击中时的渐变颜色
6、最后一个我们设置闪烁的持续时间为0.125s