summaryrefslogtreecommitdiff
path: root/FollowRotation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'FollowRotation.cs')
-rw-r--r--FollowRotation.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/FollowRotation.cs b/FollowRotation.cs
new file mode 100644
index 0000000..514281a
--- /dev/null
+++ b/FollowRotation.cs
@@ -0,0 +1,15 @@
+using UnityEngine;
+
+public class FollowRotation : MonoBehaviour
+{
+ public Transform target;
+
+ private void Start()
+ {
+ }
+
+ private void LateUpdate()
+ {
+ base.transform.rotation = target.rotation;
+ }
+}