What you want to do is use "transform.forward" in your code instead of Vector3.forward.
Vector3.forward is in world space and always goes in one direction based on world space. "transform.forward" goes forward in the gameObject's local space.
↧