Referencing A Specific Sphere Collider

Hi all,

I have a game-object with 2 colliders - a CharacterController and a SphereCollider.

What I want to do is reference the sphereCollider to a variable but I cant seem to figure out how to do it - Whenever I try to reference the collider it always uses the CharacterController.

Any help will be much appreciated …

Cheers,

  • Mel.

Figured it out …

theCollider = GetComponent(SphereCollider);