From ff111d95db1878f9c35d99e7d4fa0b4d9a0de37c Mon Sep 17 00:00:00 2001 From: Carson Katri Date: Sat, 12 Jun 2021 00:30:21 -0400 Subject: Restructure scripts, improve locomotion, and add movement indicators --- Assets/Scripts/Controllers/AIController.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Assets/Scripts/Controllers/AIController.cs (limited to 'Assets/Scripts/Controllers/AIController.cs') diff --git a/Assets/Scripts/Controllers/AIController.cs b/Assets/Scripts/Controllers/AIController.cs new file mode 100644 index 0000000..9f115c2 --- /dev/null +++ b/Assets/Scripts/Controllers/AIController.cs @@ -0,0 +1,19 @@ +using UnityEngine; + +namespace Controllers +{ + public class AIController : MonoBehaviour + { + private void Update() + { + if (Input.GetKey(KeyCode.H)) + { + transform.position += Vector3.right * 0.01f; + } + else if (Input.GetKey(KeyCode.F)) + { + transform.position += Vector3.left * 0.01f; + } + } + } +} -- cgit v1.2.3-56-ge451