This is a game I am making in Unity, I am not a professional so the quality of these scripts is questionable. Tinker with and use anything you like.