SteamVR_Controller.Device.GetHairTriggerUp C# (CSharp) Méthode

GetHairTriggerUp() public méthode

public GetHairTriggerUp ( ) : bool
Résultat bool
        public bool GetHairTriggerUp()
        {
            Update(); return !hairTriggerState && hairTriggerPrevState;
        }

Usage Example

Exemple #1
0
    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");
        }
    }
All Usage Examples Of SteamVR_Controller.Device::GetHairTriggerUp