I’m having this kind of problem.It says "error cs1525:unexpected symbol ’ ; ’ , expecting ’ ( ‘, ‘,’,’ {', or ‘where’
The code is :
// MyScript.cs
using UnityEngine;
public class GroundControl : MonoBehaviour;
{
//some variable declarations
public float speed = 0.5f
private Renderer rend;
// A method declarations
void Start ()
{
rend = GetComponent();
}
void Update()
{
//method body
float offset = Time.time * speed;
rend.material.mainTextureOffset = new Vector2 (0, -offset);
}
}
Please help me with this problem!!I really need your help rn ![]()