Like I said above, the Lizard is working exactly as intended. Walking, attacking when it reaches a defender, causing damage to the defender, and then walking after the defender has been destroyed. For some reason once the Fox gets to the attack animation on a defender, it never causes damage and therefore never destroys the object or walks after.
Hi seanbhup,
Did you remember to put Animation Events in your Fox’s animation/s?
If you did, did you put in a positive number?
Opposite is valid for me. My fox attacking but lizard. Did you find a solution? and events are existing for both
SOLUTION:
The solution is (in my case) in lizard script I didn’t write these code in TriggerEnter2D
GameObject obj = thingHit.gameObject;
so there’s no object to attack and attacking cannot be performed