上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页
摘要: public class L2 : MonoBehaviour { // Start is called before the first frame update void Start() { //设置纹理类型主要是为了指明图片是用于哪项工作的 //相关参数 //Default - Alpha S 阅读全文
posted @ 2025-03-26 19:13 cannedmint 阅读(33) 评论(0) 推荐(0)
摘要: public class L6P2<TKey, TValue> : Dictionary<TKey, TValue>, IXmlSerializable { public XmlSchema GetSchema() { return null; } public void ReadXml(XmlRe 阅读全文
posted @ 2025-03-24 19:47 cannedmint 阅读(12) 评论(0) 推荐(0)
摘要: public class L5Test:IXmlSerializable { public int test1; //引用类型的数据不初始化的话默认为空,序列化时就不会存储该数据 public string test2; //返回结构 public XmlSchema GetSchema() { / 阅读全文
posted @ 2025-03-24 19:27 cannedmint 阅读(17) 评论(0) 推荐(0)
摘要: public class L4 : MonoBehaviour { // Start is called before the first frame update void Start() { string path = Application.persistentDataPath + "/Tes 阅读全文
posted @ 2025-03-24 17:53 cannedmint 阅读(6) 评论(0) 推荐(0)
摘要: public class Test { public int testpublic = 10; private int testPrivate = 11; protected int testProtected = 12; internal int testInternal = 13; public 阅读全文
posted @ 2025-03-24 17:28 cannedmint 阅读(5) 评论(0) 推荐(0)
摘要: public class L2 : MonoBehaviour { // Start is called before the first frame update void Start() { //决定存储的文件夹 //存储xml文件一定要存储在各平台都可读可写可找到的路径中 //1.Resour 阅读全文
posted @ 2025-03-24 16:49 cannedmint 阅读(55) 评论(0) 推荐(0)
摘要: public class L1 : MonoBehaviour { // Start is called before the first frame update void Start() { //C#读取XML的方式有以下几种 //1.XmlDocument 把数据加载到内存中,方便读取 //2 阅读全文
posted @ 2025-03-24 16:09 cannedmint 阅读(69) 评论(0) 推荐(0)
摘要: <!-- 在这里书写注释--> <!-- xml必要内容--> <?xml version="1.0" encoding="UTF-8"?> <!-- 必须要有一个根节点--> <!--每个元素都必须有关闭标签--> <!--元素命名规则基本遵照C#命名规则--> <!--xml标签对大小写敏感-- 阅读全文
posted @ 2025-03-24 15:29 cannedmint 阅读(4) 评论(0) 推荐(0)
摘要: public class L19 : MonoBehaviour { // Start is called before the first frame update void Start() { //事件响应时播放音效 //PlaySound脚本 //控件和键盘按键绑定 //KeyBinding脚 阅读全文
posted @ 2025-03-24 14:27 cannedmint 阅读(10) 评论(0) 推荐(0)
摘要: public class L18 : MonoBehaviour { // Start is called before the first frame update void Start() { //NGUI中显示3D模型 //方法1:用UI相机渲染3D模型 //1.把NGUI整体层级改为UI层 阅读全文
posted @ 2025-03-24 12:05 cannedmint 阅读(26) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页