// Update is called once per frame void Update() { // Find the kinectManager object GameObject KM = GameObject.FindGameObjectWithTag("KinectManager"); _testObject = KM.GetComponent<KinectManager>(); //----------------------- // Get all positions from the Kinect Manager Result result1 = _testObject.getBodyPos(); if(result1.Success) { //Debug.Log(result1.AccessToken); } else { //If u like to do something when we do not have a position from the kinect } //----------------------- // Get a sertain position from the Kinect Manager Result result2 = _testObject.getBodyPartPos(KinectJT.HandRight); if (result2.Success) { Debug.Log(result2.AccessToken[0]); } else { //If u like to do something when we do not have a position from the kinect } }