Adding Camera Shake

The next requirement is to add a Camera Shake when the player is damaged. In essence, to simulate a shake, you will just need to temporarily move the Camera in random places frequently. Here’s my implementation for this.

When the Player is damaged, the Player will run Player.ShakeCamera() which in turn will run CameraShake() from the script above.

This is how it looks now: