예제 #1
0
        public static void MainCameraShake(float magnitude, float duration)
        {
            CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>();

            s.Shake(magnitude, duration);
        }
예제 #2
0
        public static void MainCameraShake()
        {
            CameraShake s = Camera.main.gameObject.GetOrAddComponent <CameraShake>();

            s.Shake();
        }