0
最新的代碼問題?謝謝。錯誤資產/ qwe.cs(22,35):錯誤CS1525:意想不到的符號'<internal>'Unity3D
using UnityEngine;
using System.Collections;
public class qwe : MonoBehaviour {
public GameObject cube;
public float speed=500;
GameObject zxc;
// Update is called once per frame
void Update() {
if(Input.GetButtonUp("Jump")){
GameObject CUBE = (GameObject)Instantiate(cube, transform.position, transform.rotation);
CUBE.rigidbody.AddForce(new Vector3(-speed,0,0));
}
}
void OnCollisionEnter (Collision theCollision)
{
if(theCollision.gameObject.name == 「cube」)
{
Destroy(theCollision.gameObject);
Debug.Log(「We have hit the wall」);
}
}
}
是否真的代碼包含這些不正確* *'「矯揉造作」'-quotes ?如果是這樣,修復它們,使它們看起來像「這個」。另外,哪一行是22號? – user2864740 2014-09-27 04:30:55
如果從頭開始計數,那將是第22行。 – LearnCocos2D 2014-09-27 09:47:48