for a combat game projet, i try code a environnement perception for character. i have create a trigger around player and i would like use tag for authorize or not a action. for test my trigger, i use this simple script:
function OnTriggerEnter(other:Collider) {
Destroy(other.gameObject);
}
and, i d’ont understand why, this script work for kill other character, but it doesn’t work for other object