该文被密码保护。 阅读全文
posted @ 2024-06-26 13:37 朋丶Peng 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-06-17 16:41 朋丶Peng 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ReadXml.cs内容: using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Xml; public class ReadXml : MonoBehaviour { 阅读全文
posted @ 2024-06-17 16:14 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine; using System.Collections; public class TestClass : MonoBehaviour { private float AlphaValue = 1.0f; private float time = 0.0f; priv 阅读全文
posted @ 2024-06-17 15:26 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public class NewBehaviourScript : MonoBehaviour { [DisplayOnly] string studentName = "秦始皇"; [DisplayOnly] [SerializeField] float age = 15; [DisplayOnl 阅读全文
posted @ 2024-06-17 14:55 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(124) 评论(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:38 朋丶Peng 阅读(114) 评论(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:17 朋丶Peng 阅读(219) 评论(0) 推荐(0) 编辑
摘要: List.Select(): ①一般List中的元素是对象的时候,可以通过Selec()获取列表中所有元素的部分或者全部属性属性值列表; ②如果Select()中有判断的部分,则最终返回的列表是bool布尔类型的列表。 1 using System.Collections; 2 using Syst 阅读全文
posted @ 2024-02-28 14:28 朋丶Peng 阅读(427) 评论(0) 推荐(1) 编辑
摘要: List.Find() :获取List中第一个符合条件的元素,并返回该元素;List.FindAll() :获取List中所有符合条件的元素,并最终返回一个列表。 1 using System.Collections; 2 using System.Collections.Generic; 3 us 阅读全文
posted @ 2024-02-28 11:27 朋丶Peng 阅读(546) 评论(0) 推荐(0) 编辑