0
#pragma strict
private Rigidbody rb;
function Start() {
rb = GetComponent<Rigidbody>();
}
function FixedUpdate() {
var v : float = Input.GetAxis("Vertical");
var h : float = Input.GetAxis("Horizontal");
Vector3 movement = new Vector3 (h, 0.0f, v);
rb.AddForce (movement);
}
나를 보여줄 수있는 몇 가지 코드로 답해 주시면 감사하겠습니다. 회신 해 주셔서 감사합니다.Unity javascript error 리지드 바디
그래서 오류가 무엇입니까? – Programmer
Assets/Scripts/PlayerController.js (3,10) : BCE0043 : 예상치 못한 토큰입니다. 리지드 바디입니다. –
오. 이 하나의 Assets/Scripts/PlayerController.js (13,16) : UCE0001 : ';' 예상했다. 끝에 세미콜론을 삽입하십시오. v) –