void Update() { transform.localPosition = originalPosition + CameraShake.CameraShakeOffset; if (pressSpaceToShake && Input.GetKeyDown(KeyCode.Space)) { CameraShake.ShakeCamera(1, 0.2f); } }
public void OnTriggerCameraShake() { CameraShake.ShakeCamera(1, 0.2f); }