Exemple #1
0
    public void Start()
    {
        emotion_initialise();

        motorEnabled        = false;
        visionEnabled       = false;
        auditionEnabled     = false;
        voiceEnabled        = false;
        initMats            = false;
        bodyTransitionReady = false;

        camRight = RightEye.transform.GetComponentInParent <Camera>();
        camLeft  = LeftEye.transform.GetComponentInParent <Camera>();
        if (!stereovision)
        {
            camRight.stereoTargetEye = StereoTargetEyeMask.None;

            camLeft.stereoTargetEye = StereoTargetEyeMask.Both;
        }
        else
        {
            camRight.stereoTargetEye = StereoTargetEyeMask.Right;

            camLeft.stereoTargetEye = StereoTargetEyeMask.Left;
        }

        latestJointValues = new List <float>();

        // controls an led ring (optional)
        StartCoroutine(SendLEDCommand(LEDS_CONNECTING));
        StartCoroutine(StartBodyTransition());

        animusManager = ClientLogic.Instance.AnimusManager;
    }