Hi there!
While doing Rick’s challenge for this lecture I did something in a different manner, but I don’t know which of these is more resource intensive.
Instead of adding this to Update():
if(!currentTarget)
{
GetComponent().SetBool(“isAttacking”, false);
}
I created a OnTriggerExit2D that does the same thing. Which of these would end up being harder on the computer in the end?
Thanks!
Rods K.