What is the reason for not setting up the fighter Component in the PlayerController right at Start() instead of getting the Component every time we hit a target of type CombatTarget?
Is there also some sort of performance comparison?
It’s a very good question. We’ve actually left quite a few optimization opportunities in the course, as we’ve mainly focused on the algorythms and getting a working prototype.
Often when you are prototyping, it’s better not to focus too hard on optimizations and caching references until you’re sure that the prototype is going to work.
Thanks for your answer, Brian
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.