'Use of unassigned local variable 'Random'
I made an spawner in Unity but I got some errors:
error CS0165: Use of unassigned local variable 'Random'
error CS1061: 'float' does not contain a definition for 'Range' and no accessible extension method 'Range' accepting a first argument of type 'float' could be found
all these error's says that this line of code:
float Random = Random.Range(0,100) / 100;
doesn't work.
Why these errors appeard? How to repair it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
