public override void Initialize() { SetAgentType(); m_OrientationCube = GetComponentInChildren <OrientationCubeController>(); m_DirectionIndicator = GetComponentInChildren <DirectionIndicator>(); m_JdController = GetComponent <JointDriveController>(); //Setup each body part m_JdController.SetupBodyPart(body); m_JdController.SetupBodyPart(leg0Upper); m_JdController.SetupBodyPart(leg0Lower); m_JdController.SetupBodyPart(leg1Upper); m_JdController.SetupBodyPart(leg1Lower); }