I want to try a unity project from different version. the project is unity 5, and my unity is 2020 2.7f1. while I open the project, I had this warning
it said that "new" keyword is not allowed and I don't understand how to fix this
this is the code from FuzzySet.cs
public string[] tenBNN = new string[10];
//so bien ngon ngu
public int SoBNN = 0;
public FuzzySet(string a)
{
_name = a;
}
and this is from Speed_Control.cs
public static FuzzySet Foresight = new FuzzySet("Foresight");
public static FuzzySet RoadWidth = new FuzzySet("Road Width");
public static FuzzySet CarInFront = new FuzzySet("Cars in front");
public static FuzzySet Distance = new FuzzySet("Distance to the intersection");
public static FuzzySet Speed = new FuzzySet("Safe Speed");