public bool GetHairTriggerUp()
{
Update(); return !hairTriggerState && hairTriggerPrevState;
}
void Update() { if (Hand.isValid) { Hand = GetComponent <SteamVR_TrackedObject>(); } device = SteamVR_Controller.Input((int)Hand.index); if (ball.shock) { StartCoroutine("Shock", 0.07f); } if (device.GetHairTriggerDown()) { if (ball.whoHit == 1) { isSkill = true; } //Debug.Log("down"); } if (device.GetHairTriggerUp()) { //isSkill = false; //Debug.Log("up"); } }