aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/CameraController.cs
diff options
context:
space:
mode:
authorCarson Katri <carson.katri@gmail.com>2021-06-12 00:30:21 -0400
committerCarson Katri <carson.katri@gmail.com>2021-06-12 00:30:21 -0400
commitff111d95db1878f9c35d99e7d4fa0b4d9a0de37c (patch)
treea7d55973657e37405eea64178f86556f585d5f30 /Assets/Scripts/Controllers/CameraController.cs
parentae62fd809cfc5545de37c6bee0ba759402bba3fe (diff)
downloadgmtk-gamejam-ff111d95db1878f9c35d99e7d4fa0b4d9a0de37c.tar.gz
gmtk-gamejam-ff111d95db1878f9c35d99e7d4fa0b4d9a0de37c.tar.zst
gmtk-gamejam-ff111d95db1878f9c35d99e7d4fa0b4d9a0de37c.zip
Restructure scripts, improve locomotion, and add movement indicators
Diffstat (limited to 'Assets/Scripts/Controllers/CameraController.cs')
-rw-r--r--Assets/Scripts/Controllers/CameraController.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Assets/Scripts/Controllers/CameraController.cs b/Assets/Scripts/Controllers/CameraController.cs
new file mode 100644
index 0000000..a72b2f4
--- /dev/null
+++ b/Assets/Scripts/Controllers/CameraController.cs
@@ -0,0 +1,14 @@
+using UnityEngine;
+
+namespace Controllers
+{
+ public class CameraController : MonoBehaviour
+ {
+ [SerializeField] private Transform target;
+
+ private void Update()
+ {
+ transform.position = new Vector3(target.transform.position.x, target.transform.position.y, -10f);
+ }
+ }
+}