按照要求輸入顯示代碼錯誤
public class tank : MonoBehaviour {
? ? public GameObject gobullet;
? ? private GamObject bullet;
// Use this for initialization
void Start () {
? ? ? ? bullet = Instantiate(gobullet);
? ? ? ? bullet.transform.parent = this.transform;
}
// Update is called once per frame
void Update () {
}
}
2016-10-28
? ?第二行
你的這個類型名寫錯了,改成?