摘要:
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)
摘要:
public class L17 : MonoBehaviour { // Start is called before the first frame update void Start() { //NGUI缓动 - 让控件交互时进行缩放,透明,位置,角度变化等 //通过NGUI自带的Tween功 阅读全文
posted @ 2025-03-24 11:44
cannedmint
阅读(6)
评论(0)
推荐(0)
摘要:
public class L16 : MonoBehaviour { // Start is called before the first frame update void Start() { //NGUI字体 - 降低DrawCall和自定义美术字体 //制作NGUI字体 //NGUI内部提供 阅读全文
posted @ 2025-03-24 11:13
cannedmint
阅读(9)
评论(0)
推荐(0)
摘要:
public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { //DrawCall - CPU准备好渲染数据通知GPU进行渲染 //降低DrawCall //UI层 阅读全文
posted @ 2025-03-24 10:47
cannedmint
阅读(9)
评论(0)
推荐(0)
摘要:
public class L14 : MonoBehaviour { public UISprite A; public UISprite B; // Start is called before the first frame update void Start() { //控件自带事件的局限性 阅读全文
posted @ 2025-03-24 10:01
cannedmint
阅读(17)
评论(0)
推荐(0)
摘要:
public class L13 : MonoBehaviour { // Start is called before the first frame update void Start() { //Anchor是用于九宫格布局的锚点 //1.老版本-锚点组件用于控制对象对齐方式 //2.新版本- 阅读全文
posted @ 2025-03-24 09:09
cannedmint
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号