Combining Triggers

I have three objects, two are Triggers, and one is a regular Collider with a script.

Is there a way to avoid needing 2 more scripts just for OnTriggerStay? In other words is there a way to call OnTriggerStay for two seperate triggers in a single script?

Not sure if this is right but I’d go about it like this (bare in mind I’m refering to Java, sorry) :

In Unity tag each of the Triggers something different.

On the other objects script (with the Collider) in an Update function write if statements for each.

So :

function OnTriggerEnter(hit : Collider)
{
 if(hit.gameObject.tag == trigger1)
 {
 //desired effect here
 }
 if(hit.gameObject.tag == trigger2)
 {
 //desired effect here
 }

}

I think this is what you’re asking for, if I’m wrong sorry.