Hi, I’m making a 2D platform we using c# and I have created an enemy that has two scripts. One for general movement and another which is a script for a collider that sees wether the player is in the enemy’s line of sight (in order for the player to attack).
Everything worked great until I turned my enemy into a prefab and placed two in my game. As a result, entering the collider of one will trigger the collider of the other., even though I have used if statements for tags when colliding.
Is there a certain way I should prefab an enemy in order to get them to act as individuals.
Thanks.