摘要: 1、先建立两个场景 2、把两个场景在在build setting 中添加两个建好的两个场景 3、在第一个场景中建立一个button和slider组件 4、代码处理 using UnityEngine;using System.Collections;using UnityEngine.UI;usin 阅读全文
posted @ 2017-09-29 17:07 无止境! 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 游戏版本和资源版本最好不要混在一起 资源版本用来区分强更。 阅读全文
posted @ 2017-09-25 20:11 无止境! 阅读(316) 评论(0) 推荐(0) 编辑
摘要: PlayerPrefs.SetInt("aaaa", value) //设置键值 PlayerPrefs.GetInt("aaaa") //通过键获取值 PlayerPrefs.HasKey("aaaa")// 是否存在键值 阅读全文
posted @ 2017-09-19 10:58 无止境! 阅读(102) 评论(0) 推荐(0) 编辑
摘要: TempList.Sort((Activity data_a, Activity data_b) => { if (data_a.IsGet == data_b.IsGet) { return data_a.ID.CompareTo(data_b.ID); } else { return data_ 阅读全文
posted @ 2017-09-12 11:02 无止境! 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: public static List<XmlData> GetXmlData( string path,string name) { List<XmlData> XmlList = new List<XmlData>(); XmlDocument documwent = new XmlDocumen 阅读全文
posted @ 2017-09-11 19:43 无止境! 阅读(217) 评论(0) 推荐(0) 编辑
摘要: OpenFileDialog file1 = new OpenFileDialog(); if (Properties.Settings.Default.path1!= "" && Properties.Settings.Default.path1 != null) { file1.InitialD 阅读全文
posted @ 2017-09-11 19:39 无止境! 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: 1、双击证书 2、取消自动选择证书 3、选择证书 注:名字必须一样 阅读全文
posted @ 2017-09-09 10:13 无止境! 阅读(887) 评论(0) 推荐(0) 编辑
摘要: string m_FilePath =m_FilePath.Replace(@"\","\\");// 单斜杠替换成双斜杠 string m_FileName = (file.FileName).Substring((file.FileName).LastIndexOf('\\') + 1, (fi 阅读全文
posted @ 2017-09-06 10:02 无止境! 阅读(2568) 评论(0) 推荐(0) 编辑
摘要: 首先的引入 using System.IO; OpenFileDialog file = new OpenFileDialog(); file.ShowDialog(); string selectfile = file.SafeFileName; FileInfo finfo = new File 阅读全文
posted @ 2017-09-05 20:07 无止境! 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 下面的声明都是什么意思?const int a; int const a; const int *a; int * const a; int const * a const; 1、a是一个常整形数 2、a是一个常整形数 3、a是指向常整形数的指针(整形数不可以修改,指针可修改) 4、a是指向整形数的 阅读全文
posted @ 2017-09-01 11:48 无止境! 阅读(95) 评论(0) 推荐(0) 编辑