Hello
For the Lizard Object there are 2 different instances/implementations of function “void OnTriggerEnter2D (Collider2D collider)” in Attacker and Lizard scripts. How does the game engine select which copy of the function to implement when Lizard is triggered after a collision? I didn’t see anything about derived class/inheritance info in the code.
Because my Lizard object is implementing the one in the Attacker.cs, not the one in the Lizard.cs. Hence he is not attacking. Thank you