摘要: List.Exists():判断列表中是否有符合条件的元素。 1 using System.Collections; 2 using System.Collections.Generic; 3 using System.Linq; 4 using UnityEngine; 5 6 public cl 阅读全文
posted @ 2024-02-29 11:54 朋丶Peng 阅读(66) 评论(0) 推荐(0) 编辑
摘要: List.Sort():对List所有元素按条件进行排序。 1 using System.Collections; 2 using System.Collections.Generic; 3 using System.Linq; 4 using UnityEngine; 5 6 public cla 阅读全文
posted @ 2024-02-29 11:39 朋丶Peng 阅读(63) 评论(0) 推荐(0) 编辑
摘要: List.Where():找出List中满足某个或者某些条件的所有元素。 1 using System.Collections; 2 using System.Collections.Generic; 3 using System.Linq; 4 using UnityEngine; 5 6 pub 阅读全文
posted @ 2024-02-29 11:18 朋丶Peng 阅读(140) 评论(0) 推荐(0) 编辑