Beispiel #1
0
        void Update()
        {
            transform.localPosition = originalPosition + CameraShake.CameraShakeOffset;

            if (pressSpaceToShake && Input.GetKeyDown(KeyCode.Space))
            {
                CameraShake.ShakeCamera(1, 0.2f);
            }
        }
Beispiel #2
0
 public void OnTriggerCameraShake()
 {
     CameraShake.ShakeCamera(1, 0.2f);
 }