【untiy造轮子】实现人物受击抖动和闪烁

效果

在这里插入图片描述

代码

//人物抖动+闪烁
public IEnumerator Shake()
{
   
    
    
    // 定义抖动效果的持续时间
    float shakeDuration = 0.2f;

    // 定义抖动效果的强度
    float shakeIntensity = 

猜你喜欢

转载自blog.csdn.net/qq_36303853/article/details/130477179