How to GetComponent from another Gameobject OnTriggerEnter

Hey guys-

I have a container of water I want to fill up when water particles enter it.

Right now, I’ve enabled collisions on my water particles. The waterContainer object is just a BoxCollider set to isTrigger. I tried putting this script on the waterparticlesystem but obviously it did not work because you can’t getComponents from colliders:

void OnParticleTrigger (Collider other)
	{
		other.GetComponent<waterContainerScript>().AddWater();
	}

Does anyone know how to GetComponent from the object you are triggering??

you can apply a script in the box collider with trigger on and store a public bool value in it and once the Trigger is altered then simply make the bool true
suppose somethingEntered = true; and then access this bool from other scripts.