Hi Ive switched from regular coding to using Unity and Im getting errors for seemingly simple stuff. Here it is and Thanks in advance.
Error: Assets/Starting Biome.cs(8,18): error CS0712: Cannot create an instance of the static class 'Random'
Error: Assets/Starting Biome.cs(8,7): error CS0723: Cannot declare a variable of static type 'Random'
Error: Assets/Starting Biome.cs(9,23): error CS1061: 'Random' does not contain a definition for 'Next' and no accessible extension method 'Next' accepting a first argument of type 'Random' could be found (are you missing a using directive or an assembly reference?)
Here's my Code:
using UnityEngine;
using System.Runtime;
public class StartingBiome : MonoBehaviour{
// Start is called before the first frame update
static void StrBiome(){
var RndB = new Random();
int StrB = RndB.Next();
}
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}