diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-06-11 22:12:35 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-06-11 22:12:35 -0400 |
commit | bd7479c08a5f2a2b0edf0fa88cf7edeed90f10bd (patch) | |
tree | 621251d0bbdf2c477396cba14125471fd12e37db | |
parent | 395ee72e22b9dcd7e8b9977043a8f8fb7690aa1d (diff) | |
download | gmtk-gamejam-bd7479c08a5f2a2b0edf0fa88cf7edeed90f10bd.tar.gz gmtk-gamejam-bd7479c08a5f2a2b0edf0fa88cf7edeed90f10bd.tar.zst gmtk-gamejam-bd7479c08a5f2a2b0edf0fa88cf7edeed90f10bd.zip |
Add AI Guy
-rw-r--r-- | Assets/Scripts/AIController.cs | 16 | ||||
-rw-r--r-- | Assets/Scripts/AIController.cs.meta | 3 |
2 files changed, 19 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 diff --git a/Assets/Scripts/AIController.cs.meta b/Assets/Scripts/AIController.cs.meta new file mode 100644 index 0000000..a64fd78 --- /dev/null +++ b/Assets/Scripts/AIController.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: bc5bf022ed0c4bfcaae099b96eecf645 +timeCreated: 1623461478
\ No newline at end of file |