List<int> answer1 = new List<int>();
answer1.Add(0);
answer1.Add(2);
List<int> answer2 = new List<int>();
answer2.Add(2);
answer2.Add(0);
Debug.Log(answer1.SequenceEqual(answer2)); // false
// 对这种整个数组直接比较看是否相等的,可以先排序,再对比
// 如果不先排序,直接进行对比,因为元素顺序不一样是不相等的
answer1.Sort();
answer2.Sort();
Debug.Log(answer1.SequenceEqual(answer2)); // true