(SOLVED)Can someone help me with Reload by keypress R ...

Can someone help me with Reload by keypress R …
I hit R and nothing happens, neither a mistake nor anything …
My srcipt

(Line 341+)

C# is case sensitive. The language sees the methods update() and Update() as two entirely different methods. The former is how you’ve written it, while the latter is how it should be written in Unity. Assuming that your MonoSingleton class isn’t doing anything screwy with Update.

You should get familiar with Debug.Log and when hitting this kind of issue you add debugging everywhere relevant. Adding a Debug.Log to “update()”, both outside and inside that “if” statement, and inside reloadKey is the very first step I would have taken to figure this issue out.

1 Like

WOWW sory i’m “newb”

update → Update

1 Like