diff options
author | Carson Katri <carson.katri@gmail.com> | 2021-06-11 22:47:39 -0400 |
---|---|---|
committer | Carson Katri <carson.katri@gmail.com> | 2021-06-11 22:47:39 -0400 |
commit | c980f38888f0ae4a5fcb48c0ab724d32b442a146 (patch) | |
tree | 9bef057cc16b501e52e283f06c004fb135a93945 /Assets/Scripts/AIController.cs | |
parent | c7bbe173a82dcf3fd80a92c6002fbdc9c0055e0c (diff) | |
parent | bd7479c08a5f2a2b0edf0fa88cf7edeed90f10bd (diff) | |
download | gmtk-gamejam-c980f38888f0ae4a5fcb48c0ab724d32b442a146.tar.gz gmtk-gamejam-c980f38888f0ae4a5fcb48c0ab724d32b442a146.tar.zst gmtk-gamejam-c980f38888f0ae4a5fcb48c0ab724d32b442a146.zip |
Merge branch 'master' of git.cameronkatri.com:gmtk-gamejam
Diffstat (limited to 'Assets/Scripts/AIController.cs')
-rw-r--r-- | Assets/Scripts/AIController.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Assets/Scripts/AIController.cs b/Assets/Scripts/AIController.cs new file mode 100644 index 0000000..9cb20fb --- /dev/null +++ b/Assets/Scripts/AIController.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +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; + } + } +}
\ No newline at end of file |