// Update is called once per frame void FixedUpdate() { if (vocb == null) { vocb = hand.IndexTip.GetComponent <VibrateOnCollideBehaviour>(); } if (vocb != null && indexFTC != null && (indexFTC.touching != null && indexFTC.touching.Equals(knob))) { string toDisplay = vocb.VibrationEffect + " " + knob.getVibrationEffect() + " " + knob.VibrationEffect; if (vocb.VibrationEffect != null && vocb.VibrationEffect.Value != knob.getVibrationEffect()) { toDisplay += "\r\nERROR"; } MaestroBLEUI.SetRightText(toDisplay); /*if (!toDisplay.Equals(lastDisplayed)) * { * Debug.Log(toDisplay); * lastDisplayed = toDisplay; * * if (vocb.VibrationEffect != null && vocb.VibrationEffect.Value != knob.getVibrationEffect()) * { * Debug.Log("WHOA THERE"); * } * }*/ } }
void Awake() { netImpulse = Vector3.zero; rb = GetComponent <Rigidbody>(); vocb = GetComponent <VibrateOnCollideBehaviour>(); pocb = GetComponent <PullOnCollideBehaviour>(); lastLocation = this.transform.position; TriggerTouching = false; }