摘要:
如下: void Update() { //识别键盘输入 //键盘A键按住 //第一种方式 "a" 必须是小写字母 if (Input.GetKey("a")) { Debug.Log("a"); } //第二种方式 KeyCode的枚举类型 if (Input.GetKey(KeyCode.A)) 阅读全文
posted @ 2022-04-08 11:34
HanaKoo
阅读(1144)
评论(0)
推荐(0)
摘要:
点击UI界面摁按钮,实现对应移动等功能 private void Update() { time = Time.time; if(time_go == 1) { this.transform.position += Vector3.forward * Time.deltaTime; } } priv 阅读全文
点击UI界面摁按钮,实现对应移动等功能 private void Update() { time = Time.time; if(time_go == 1) { this.transform.position += Vector3.forward * Time.deltaTime; } } priv 阅读全文
posted @ 2022-04-08 11:07
HanaKoo
阅读(186)
评论(0)
推荐(0)

浙公网安备 33010602011771号