// Use this for initialization void Start () { Hand = GetComponent(); //获得SteamVR_ TrackedObject组件 } // Update is called once per frame void Update () { //防止Start函数没加载成功,保证SteamVR_ TrackedObject组件获取成功! if (Hand.isValid) { Hand = GetComponent(); } device = SteamVR_Controller.Input((int)Hand.index); //根据index,获得手柄 //如果手柄的Trigger键被按下了 if (device.GetPressDown(SteamVR_Controller.ButtonMask.Trigger)) {