using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SphereContral : MonoBehaviour
{
private Rigidbody rb;
void Start()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
float horinput=Input.GetAxis("Horizontal");
float verinput=Input.GetAxis("Vertical");
Vector3 movement = new Vector3(GetAxisZ, 0, deltaX);
rb.AddForce(movement*10);
}
}
unity3d中一个球被上下左右键控制移动的代码,想问一下问题出在哪,该怎么改正,这个报错是unity报的,vs显示这个没有错误