I have 2 colliders, 1 is a box and 1 is a sphere. I have OnTriggerEnter and I want 1 thing to only happen when the box collider triggered it, and 1 thing to happen only when the sphere hit it. It does NOT matter what the object is colliding with. Basically I want something like
private void OnCollisionEnter(Collider otherCollision)
{
// I know this is written wrong, basically just representing that this
// objects sphere collider is what collided with the other object's collider
if (sphereCollider)
{
// Sphere collider code
}
// same thing but with box
else if (boxCollider)
{
// Box collider code
}
}