diff options
Diffstat (limited to 'JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs')
-rw-r--r-- | JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs new file mode 100644 index 0000000..4f8ebab --- /dev/null +++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs @@ -0,0 +1,20 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace JamUtils +{ + + [RequireComponent(typeof(Camera))] + public class MainCameraFollow : MonoBehaviour + { + + public void SetCameraPositionAndRotation(Transform reference) + { + transform.position = reference.position; + transform.rotation = reference.rotation; + } + + } + +}
\ No newline at end of file |