If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: https://discussions.unity.com/t/481379
This may be helpful to you:
https://docs.unity3d.com/ScriptReference/Input.GetKeyDown.html
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: https://discussions.unity.com/t/481379
This may be helpful to you:
https://docs.unity3d.com/ScriptReference/Input.GetKeyDown.html