Instantiated attackers arent attacking properly.....Pls help!

The attackers arent attacking the defenders. The onTrigger is working but the strikeTarget() only works for some attackers and that too randomly. Please help…
Only the attackers in one lane work the rest all just walk by ignoring the defenders.


I added a debug message to check if the onTrigger is working, and it does for all the attackers.
But the strikeTarget() is only being called twice(only in one lane).

Never mind i fixed it. i had created a reference for the attackeranimator and was calling it from there instead of getting the component each time.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms