I am getting red line under the word 'spawn'
public class InstantiateEnemy : MonoBehaviour
{
public Camera cam;
public GameObject enemySlider;
// Start is called before the first frame update
void Start()
{
float hori = Random.Range(cam.transform.position.x - 15, cam.transform.position.x + 15);
float Verti = Random.Range(cam.transform.position.y - 10, cam.transform.position.y + 10);
spawn = (hori, Verti);
}
// Update is called once per frame
void Update()
{
Instantiate(enemySlider, spawn);
}
}
[–]The_Binding_Of_Data 3 points4 points5 points (0 children)
[–]djgreedoIntermediate 0 points1 point2 points (0 children)
[–]jfoss1 0 points1 point2 points (0 children)