public virtual void Update() { if (GameManegmentHelper.PlayerDetected == false) { if (isRendered == true) { // Debug.Log("Null col"); isRendered = false; _image.color = initColor; } return; } _data = KinectInputModule.instance.GetHandData(_handType); if (_data == null || !_data.IsTracking) { if (isRendered == true) { // Debug.Log("Null col"); isRendered = false; _image.color = initColor; } return; } isRendered = true; ProcessData(); }
protected void Setup() { _data = KinectInputModule.instance.GetHandData(_handType); // Make sure we dont block raycasts GetComponent <CanvasGroup>().blocksRaycasts = false; GetComponent <CanvasGroup>().interactable = false; // image component _image = GetComponent <Image>(); }
protected void Setup() { _data = KinectInputModule.instance.GetHandData(_handType); // Make sure we dont block raycasts GetComponent<CanvasGroup>().blocksRaycasts = false; GetComponent<CanvasGroup>().interactable = false; // image component _image = GetComponent<Image>(); }
protected virtual void Awake() { Data = KinectInputModule.Instance.GetHandData(HandType); Group = GetComponent <CanvasGroup>(); Group.blocksRaycasts = false; Group.interactable = false; Group.alpha = 0; MainImage = GetComponent <Image>(); MainImage.raycastTarget = false; }
protected void Setup() { _data = KinectInputModule.instance.GetHandData(_handType); // Make sure we dont block raycasts GetComponent <CanvasGroup>().blocksRaycasts = false; GetComponent <CanvasGroup>().interactable = false; // image component _image = GetComponent <Image>(); //imgRndr = _image. isRendered = true; if (_data == null) { Debug.Log("Error"); } //Debug.Log(_data.HandPosition); }
private void Awake() { _kinectInputData = KinectInputModule.Instance.GetHandData(HandType); }
private void Awake() { _bodyManager = GetComponent <BodyIndexSourceManager>(); _inputData = FindObjectOfType <KinectInputModule>()._inputData[0]; _rb = GetComponent <Rigidbody>(); }