Question by
Nickymouse · Apr 04, 2016 at 05:02 AM ·
scripting problembeginnercomponents
If several BoxCollider attach to a gameObject, how to differ them?
Hello, i created a Cube and adding several BoxCollider to it, but each of them for different effect(front, side, back). I know there is a method called "transform.GetChild(Index)" for searching a specific Child object, i have tried creating several Child object respectively responsible for one Collider, but i think this is kinda clumsy. Is there are some similar method like "transform.GetChild(Index)" which is for searching component?
Thank you so much.
Comment
Your answer
Follow this Question
Related Questions
Multiple in game currencies 1 Answer
Using LookAt to look at a Vector3 not Transform 0 Answers
How to make a shooting bow? 0 Answers
Health Bar Problem 1 Answer
The roll a ball script isn't working 3 Answers