Ejemplo n.º 1
0
    public void Initialize()
    {
        ragdoll = GetComponentInChildren <Ragdoll>();
        motionControl2.Initialize();
        ServoSound componentInChildren = GetComponentInChildren <ServoSound>();
        HumanHead  humanHead           = ragdoll.partHead.transform.gameObject.AddComponent <HumanHead>();

        humanHead.sounds     = componentInChildren;
        humanHead.humanAudio = GetComponentInChildren <HumanAudio>();
        componentInChildren.transform.SetParent(humanHead.transform, worldPositionStays: false);
        InitializeBodies();
    }