two colliders is touching

hi
i have a big question!!!
my problem is to detect two objects are touching or not from another game object:
when the avatar touch the cube another gameobject start to animate
i didn’t know how to do it,i search here but all i find is detection collision between two object where one of them have the main script i hope you understand what i mean
a gameobject detect the collision of another two gameobjects PLZ help!!!

An object A can’t detect if objects B and C are colliding.

What you have to do is :

  1. Attach a script to object B or object C and make it detect collision (using OnTriggerEnter and OnTriggerExit)

  2. One of these two solutions :

  3. Set a public boolean value indicating if the objects are colliding and make A check this value each FixedUpdate (not best idea)

  4. Make A subscribe to an event so that it will be warned when the objects are colliding