I’ve been figuring out a triggered collider object why is causing my player’s health itself damaging. And I see nothing wrong in my script. Could you tell me why it doing it?
private GameObject other; //This meant a player/enemy to damage a player/enemy yet why an Is Triggered Collider object is damaging a player, although it doesn’t have a health script and it has rigidbody.
void OnTriggerEnter (Collider other) { //Health & Attack }
void OnTriggerExit (Collider other) { //Attack }