1st Person shooter, move player forward where cam is facing

Hello Community,

I am having a hard time trying to figure out how to move the player forward in the direction of where the camera is facing. Anyone kind enough to share the line or lines of code I need to use in order to make it work.


ps. This is a 1st person shooter by the way and is being coded in C#.

transform.localPosition += Vector3.forward;