using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Use this for initialization
}
// Update is called once per frame
void Update () {
using System.Collections.Generic;
using UnityEngine;
public class Show : MonoBehaviour {
//声明一个bool类型变量
public bool isShowGun = false;
//手柄组件类型
SteamVR_TrackedController steamVR_TrackedController;
//枪的组件
public GameObject Gun;
//手柄组件
public GameObject model;// Use this for initialization
void Start () {
//获取手柄上的组件
steamVR_TrackedController = GetComponent<SteamVR_TrackedController>();
//回调类型
steamVR_TrackedController.MenuButtonClicked += OnMenuButtonClicked;}
// Update is called once per frame
void Update () {