Rather than
The transform. TransformDirection (offset)
CodePudding user response:
Transform. TransformDirection (offset) describes the script mounted the direction of change, the code is the camera follow the player, bound to describe player movement change, and so the camera to follow the player movement, the calculation should be change in the position of the player + playerCodePudding user response:
The player is defined by the transform