diff options
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 |