孙浩飞XF
2018-07-10 21:38
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class main : MonoBehaviour {
// Use this for initialization
void Start () {
Debug.Log("y " + Input.GetAxis("Horizontal"));
//输出 y 0
}
// Update is called once per frame
void Update () {
}
}
好吧,看错函数了,应该写在 update里面
Unity3D快速入门
146124 学习 · 379 问题
相似问题