Question by
QwertyTheSupreme · Jan 21, 2021 at 08:53 PM ·
scripting problemscript error
how to activate ienumerator with keyboard,how to start IEnumerator script with keyboard
if (Input.GetKeyDown(KeyCode.R) && currentAmmo < maxAmmo) { Reload(); }
^ string im using to activate reload
IEnumerator Reload ()
^ ienumerator name
ArgumentException: Input Key named: R is unknown UnityEngine.Input.GetKeyDown (System.String name) (at C:/buildslave/unity/build/Runtime/Export/Input.bindings.cs:318) Shooting.Update () (at Assets/Shooting.cs:39)
^ error message in console
what's going wrong in my script? why isn't it working properly?,
Comment
Your answer
Follow this Question
Related Questions
Why is my script not working? 1 Answer
unexpected symbol 1 Answer
Having trouble deleting objects from a list after they reach a certain scale. 0 Answers
Health Bar Problem 1 Answer