Check collsion of objects in another script

Hey, in my game I have synergy attacks, so i’m thinking about having a synergy manager where i add all my scripts. Then I want a script that checks for attacks colliding. Is it possible? Haven’t found anything yet. Some code would help, so i will get a grasp about it.

In Unity, collision events are only sent to the object involved in the collision, through the OnCollision function. There’s no way to tell the engine to change that.

What you can do is write little stubs to redirect (I’m sure I’m misusing delegates here):

public someBase.collisionHandler_t myCEhandler; // someone sets this
void OnCollisionEnter(Collision c1) { myCEhandler(c1); }

But that’s for built-in physics collision events. You can hand-check collision in any piece of code, for any colliders using overlapSphere/box, capsulecasts.