I have made a simple script which has an ai chase you and when it reaches you, it should open a new level. But the on hit trigger only works when you run at the enemy. I’ve tried putting the on hit component on both the enemy and the player, but nothing seems to work.
Any help would be appreciated!
Any chance we could see the script that is misbehaving?
Well the script only had an on hit thing and cast to player, but i bypassed the problem by adding another collision which checked overlap instead of hit.