Using Invoke with Variables

Hi everyone, I just want to share What I found using Invoke Method, with a Variable, I do hope enjoy this video and share your progress

1 Like

Thanks for sharing this and good job with the video.

1 Like

Thank You Kevin!!!

Thanks for this. The disabling movement is a nice touch that I wouldn’t have thought about.

One minor thing that might be updated if you wanted to avoid strings completely is using “nameof()” functionality that comes with C#: i.e.;

LoadingManager(nameof(ReloadLevel));

This has the advantage that if you were ever to rename the loading function you can have those renames automatically propagated through the IDE without searching for individual string references.

Someone else might have to opine on possible inefficiencies of compiling this type of code and whether this would actually carry through to a final build (though I will get to checking that eventually - works fine in game mode for now).

Privacy & Terms