- Home /
How to get different child components ( part) of character: get and set information
Hello i have this character with a gun attached...
alt text
I can access PlayerCharacter but i dont know how to access to childs.. in particular:
1 - I want to show/hide the gun depending on the animation / state of character ( ex: she can walk o walk with pistol, idle or idle with pistol...)
2 - When i receive an impact i get a player touch.. but id like to be more precise, to make different damage if its in the head, or foot or arms the impact received...
Hint: You can notify a user about this post by typing @username
Attachments:
Your answer
Follow this Question
Related Questions
Make Script Component Do Things Even When Game Is Closed 2 Answers
Why are the components on my script disappearing when I press play 2 Answers
How to add components to other GameObjects through a C# script attached to one? 2 Answers
How to trigger udpate in editor mode only when I modify component parameters 1 Answer
pass a transform to a prefab 1 Answer