hello, 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 :/ have you a idea for this probleme? (sorry for my english ^^)
it's work with character controller, but isn't a good solution for every object. exist other solution?