close
using UnityEngine;
using System.Collections;
public class test : MonoBehaviour {
public GameObject ccc;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.R))
//如果按下鍵盤R
{
ccc.SetActive(false);
}
if(Input.GetKeyDown(KeyCode.E))
//如果按下鍵盤E
{
ccc.SetActive(true);
}
}
}
全站熱搜
留言列表