public class carmanager : MonoBehaviour
{
public
public GameObject carcontrol;
void start()
{
carcontrol = GetComponent ();
carcontrol.enabled = true;
}
}
getting error like this;
Assets\myscript\carmanager.cs(10,35): error CS0246: The type or namespace name 'Car_Controller' could not be found (are you missing a using directive or an assembly reference?)
Assets\myscript\carmanager.cs(11,20): error CS1061: 'GameObject' does not contain a definition for 'enabled' and no accessible extension method 'enabled' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)
↧