unity实现简单的摄像机震动效果(包括普通摄像机和虚拟摄像机)

普通摄像机震动效果

用代码实现摄像机简单的震动效果

using UnityEngine;
using System.Collections;

public class CameraShake : MonoBehaviour
{
   
    
    
    private bool shaking = false;  

猜你喜欢

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