Inspired from the GDC talk "Math for Game Programmers"
Feel free to use it!
Step 1. Download the repository and Open it in Unity
Step 2. Open the "demo_scene" in Scenes folder
Step 3. In play mode, press "Space to see the shake in action"
Step 1. Download the repository and Open it in Unity
Step 2. Copy the "ShakyCamera.cs" file in Scripts folder, to your project folder
Step 3. Add the ShakyCamera script to your main camera
Step 4. Get a reference to your camera in some of your old script and call camera.GetComponent().Activate()
Step 5. Enjoy the Shake!
Feel free to contribute by making a pull request!