Hi
4:13 Why in this video Tick() function was overridden ? why not tank.cpp/tank.h has its own tick() function ?
Hi
4:13 Why in this video Tick() function was overridden ? why not tank.cpp/tank.h has its own tick() function ?
Override does provide the tank with its own Tick. It has to be overridden because actor has a tick too and you need to call it otherwise the actor you’re creating may not behave correctly. If you don’t override, you can’t - your new function hides the parent class declarations.