Having the GetCoponent(), every time will click, is a good approach?
Should’t we get the NavMeshAgent component in the Start() method?
Thanks.
Having the GetCoponent(), every time will click, is a good approach?
Should’t we get the NavMeshAgent component in the Start() method?
Thanks.
In the prototyping stage, it’s usually ok to use GetComponent often, but yes, when polishing and optimizing your game, you should cache references that
Thanks a lot