error CS0236: A field initializer cannot reference the nonstatic field, method, or property `randomGen.blockPos'
error CS1502: The best overloaded method match for `UnityEngine.Vector3.Vector3(float, float)' has some invalid arguments
error CS1503: Argument `#2' cannot convert `object' expression to type `float'
The code:
float blockPos = 6f;
Vector3 placeBlockPos = new Vector3(0, blockPos);
↧