Unity GameObject抖动效果 说明 代码 说明 给物体挂上脚本,调用Shake时进行一次抖动 shakeRate:抖动幅度 shakeTime:抖动总时长 shakeDertaTime:抖动间隔 代码 using UnityEngine; using System.Collections; using System.Collections.Generic; public class Shakeable: MonoBehaviour { public Vector3 shakeRate = new Vector3