I am getting an error when it comes to:
public void SetFullscreen(bool isFullscreen)
{
for (int i =0; i < resolutionToggles.Length; i++)
{
resolutionToggles[i].IsInteractable = !isFullscreen; //this is my error
}
if(isFullscreen)
{
Resolution[] allResolutions = Screen.resolutions;
Resolution maxResolution = allResolutions[allResolutions.Length - 1];
Screen.SetResolution(maxResolution.width, maxResolution.height, true);
}
else
{
SetScreenResolution(activeScreenResIndex);
}
}