error CS1026: ) expected

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
public GameObject col;
public Renderer fondo;
// Start is called before the first frame update
void Start()
{
//Crear Mapa
for (int i=0; i<21; i++)
{
Instantiate(col, new Vector2(-10 + i,-3), Quaternion.identify();
}
}

// Update is called once per frame
void Update()
{
fondo.material.mainTextureOffset = fondo.material.mainTextureOffset + new Vector2(0.02f,0)* Time.deltaTime;
}
}

mistake, need remove (

Pure scripting questions and TBH just typos should be posted on the scripting forum here. Also, always use code-tags and please edit your post above to use them.

I’ll move your post.

Thanks.

1 Like

Actually, you already cross-posted this here .

Please don’t cross-post threads. I’ll close this one.

1 Like