title: How to make the camera follow the player in unity
body: <p>Hey i am making a unity game called Cube-Runner. There is a cube and obstacles and you have to go between them. Not going into the game a lot but the problem is how to follow the player. I can't parent it as if i do that while the cube falls the camera will also move with the rotating cube and will make the player(At least myself) dizzy.</p>
  <p><strong>Please give me a script</strong></p>
  <p><em>There needs to be a offset Vector3 which i can change from the inspector.</em></p>
  <p><em>The offset Vector3 may work.</em></p>
  <p><em>It should be written in C#.</em></p>
  <p><strong>NOTE: I AM NEW TO C# AND UNITY DO NOT JUDGE BY QUESTION</strong></p>