Hello, I would like to ask how to store propably a child class in a variable (C#). I have a character and some bones in it. I know how to store the character in variable but do not know how to store the bones because they are in character. I want to move with each bone in code.
!(http://files.stick-warriors.webnode.cz/200000040-9648c9a8e8-public/Snímek obrazovky (83).png)
I can store this ‘Armature’ this way:
private GameObject character;
void Start()
{
character = GameObject.Find("Armature");
}
But for bones it does not work. Thanks for any answers.