Hello everyone! Should my game engine variable be static or dynamic?
Why do I need static?
Because the jni event functions like nativeOnStart etc. are not in the engine scope.
Why I think I should use dynamic?
Because I think it's safer. But still, I saw a code where some guy wrote engine as a static variable.
What should I do? Thanks.
Why do I need static?
Because the jni event functions like nativeOnStart etc. are not in the engine scope.
Why I think I should use dynamic?
Because I think it's safer. But still, I saw a code where some guy wrote engine as a static variable.
What should I do? Thanks.