Can anyone have a look at this and see why it is not recognizing OrderByDescending? I got this from a tutorial and for some reason it does not work out for me. I am trying to make a high score list that goes chronologically. It has OrderByDescending marked as red as some undefined variable in my script editor.
public class ScoreManager : MonoBehaviour
{
private ScoreData SD;
public List<Score> scores;
private void Awake()
{
scores = new List<Score>();
SD = new ScoreData();
}
public IEnumerable<Score> GetHighScores()
{
return SD.scores.OrderByDescending(x => x.Value);
}