コード例 #1
0
        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);
        }
コード例 #2
0
 public static void ShakeCamera(ShakeForce force)
 {
     ShakeCamera(GetShakeForce(force));
 }