Hello, I want to make a bullet prefab that deals damage to the enemy it hits. Pretty easy right?
So I have my bullet with a script that has speed, damage a RigidBody2D and a Collider2D with the isTrigger checked.
in the Script I wrotte OnTriggerEnter thing:
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(col.gameObject.name + " : " + gameObject.name + " : " + Time.time);
}
but it-s not detecting anything. I did it many times, checked if anything was missing, watched that Brakeys tutorial to see what I was doing wrong. They did exactly the same as I, the only difference is that theirs work and mine doesnt HELP PLEASE!
I really dont see it, WHAT IS WRONG!?