private static Vector3 GetShakeForce(ShakeForce force) { switch (force) { case ShakeForce.Strong: return(Vector3.one * strongForce); case ShakeForce.Normal: return(Vector3.one * normalForce); case ShakeForce.Weak: return(Vector3.one * weakForce); case ShakeForce.None: return(Vector3.zero); } return(Vector3.zero); }
public static void ShakeCamera(ShakeForce force) { ShakeCamera(GetShakeForce(force)); }