Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 6 days ago.
Improve this question
I am trying to make a game and this error keeps coming up, I think it is for misspelling but I am pretty sure that I did not misspell anything. But with that said I may have misspelled something and didn't see it so here is my code.The Error is Syntax error expected ','
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawner : MonoBehaviour
{
public GameObject prefab;
public int objectCount;
public float spacing;
public GameObject prefab2;
public float Height;
void Start()
{
var position = new Vector3();
for (int i = 0; i < objectCount; i++)
{
Instantiate(prefab, position, (0, Random.Range(-Height, Height), 0) Quaternion.identity);
position.x += spacing;
}
}
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)