public float num;
void Start ()
{
num = Random.Range(1F, 2F);
}
ERROR IN VISUAL STUDIO: ‘GRASSAUDIO.Random()’ is a method, which is not valid in the given context
public float num;
void Start ()
{
num = Random.Range(1F, 2F);
}
ERROR IN VISUAL STUDIO: ‘GRASSAUDIO.Random()’ is a method, which is not valid in the given context
There seems to be a conflict with another namespace.
Try this:
num = UnityEngine.Random.Range(1F, 2F);