My IDE Rider suggested that I should use the nameof function as an alternative to typing the function’s name string myself.
So instead of:
Invoke("ReloadLevel"), 1f);
It is:
Invoke(nameof(ReloadLevel), 1f);
Now you’re directly referencing the method instead of just typing a string.
Now if you use “Rename Symbol”, it will update the method name within the Invoke function too. And if you misspell the method name within the Invoke function, it’ll immediately give you an error.
This seemed like really great advice from Rider so I thought I’d share it on here.