/*****************************************
     Unity3D Methods
     **************************************/
    // Use this for initialization
    void Start()
    {
        //Tests();
        SP = this;

        NUIisReady = false;
        NUIisReady = KinectWrapper.NuiContextInit(mbTwoPlayer); //initialize Kinect sensor

        //display messages
        if (NUIisReady)
            Debug.Log("Sensor Initialized.");
        else
            Debug.Log("Could Not Initialize Sensor.");

        KinectWrapper.SetCameraAngle(-20);
    }
Exemple #2
0
    /*****************************************
     * Unity3D Methods
     **************************************/

    // Use this for initialization
    void Start()
    {
        //Tests();
        SP = this;

        NUIisReady = false;
        NUIisReady = KinectWrapper.NuiContextInit(mbTwoPlayer);         //initialize Kinect sensor

        //display messages
        if (NUIisReady)
        {
            Debug.Log("Sensor Initialized.");
        }
        else
        {
            Debug.Log("Could Not Initialize Sensor.");
        }

        KinectWrapper.SetCameraAngle(-20);
    }