diff options
Diffstat (limited to 'Assets/Scripts')
-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 |