Unity3d 札记-Survival Shooting 知识点汇总--受到伤害时屏幕闪血光如何做到

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unity3d 札记-Survival Shooting 知识点汇总--受到伤害时屏幕闪血光如何做到相关的知识,希望对你有一定的参考价值。

1、Canvas添加一个Image

 

2.Image  Alpha不透明度设置为0,完全透明

 

3。

void Update(){

   if (damaged){

         DamageImage.Color = falshColor ;

   }else{

        DamageImage.Color  =Color.Lerp(falshColor, Color.clear,flashspeed*Time.deltaTime);

   }

}

以上是关于Unity3d 札记-Survival Shooting 知识点汇总--受到伤害时屏幕闪血光如何做到的主要内容,如果未能解决你的问题,请参考以下文章

R语言生存分析模型简介及survival包实现实战:基于survival包lung数据集

Lift Splat 没有Shoot的个人学习笔记

Space Shoot

游戏体验Shoot'm(暴打火柴人)

网络流ZOJ 3229 Shoot the Bullet

ZOJ3229 Shoot the Bullet