Is there any way to know which trigger have been activated?(If I have more colliders)

Good day!

I have more collider which are triggers on an enemy.Can I know exactly what trigger have been activated?(In 1 script).

do you mean that you have attached several trigger colliders to a game object?

no

Yes.I mean,there are also child game objects who are colliders working as triggers.

For the triggers which have been put on the parent object, no.

For the child objects, if you put a script on it specifically to detect trigger events, yes. The detection for those seem to be individual, although it MUST be the script on the child object reporting its hit, or trigger event, to the parent object.

I think what will be more helpful is telling us what you intend to achieve

My game object is an enemy,and it has I long trigger to detect if the player is beside him,and a little trigger in front of him,which tells him when the player is close to him and it has to attack.When the long trigger is activated , the enemy has to run towards the player,and when the player triggers the closer trigger the enemy stops and attack.

I already solved the problem by creating separate scripts for every collider.Thank you very much for your interest.Have a nice day sir!