aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Assets/Scripts/Controllers/CameraController.cs
diff options
context:
space:
mode:
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);
+ }
+ }
+}