diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-12 00:30:21 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-12 00:30:21 -0400 |
commit | ff111d95db1878f9c35d99e7d4fa0b4d9a0de37c (patch) | |
tree | a7d55973657e37405eea64178f86556f585d5f30 /Assets/Scripts/Controllers/CameraController.cs | |
parent | ae62fd809cfc5545de37c6bee0ba759402bba3fe (diff) | |
download | gmtk-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.cs | 14 |
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); + } + } +} |