07 2014 档案
摘要:using UnityEngine;using System.Linq;using System.Collections.Generic;[RequireComponent(typeof(CharacterMotor))][RequireComponent(typeof(CharacterStatu...
阅读全文
摘要:/// /// Floating text./// the GUI Text Floating system/// using UnityEngine;using System.Collections;public class FloatingText : MonoBehaviour { pu...
阅读全文
摘要:http://visualstudiogallery.msdn.microsoft.com/6e536faa-ce73-494a-a746-6a14753015f1 http://visualstudiogallery.msdn.microsoft.com/7ab11d2a-f413-4ed6-b3...
阅读全文
摘要:http://www.tracefact.net/CSharp-Programming/Delegates-and-Events-in-CSharp.aspx
阅读全文
摘要:1. 避免将多个类放在一个文件里面。2. 一个文件应该只有一个命名空间,避免将多个命名空间放在同一个文件里面。3. 一个文件最好不要超过500行的代码(不包括机器产生的代码)。4. 一个方法的代码长度最好不要超过25行。5. 避免方法中有超过5个参数的情况。使用结构来传递多个参数。6. 每行代码不要...
阅读全文
摘要:在PC上和IOS上读取XML文件的方式略有差别,经测试,IOS上不支持如下方法载入XML文件:XmlDocument xmlDoc = new XmlDocument();xmlDoc.Load("Assets/Resources/text.xml");IOS上载入XML的正确方法有2种:(1)方法...
阅读全文
摘要:using (FileStream fileStream = File.Open(fileName,FileMode.Open,FileAccess.Read,FileShare.ReadWrite))
阅读全文
摘要:using System.Text.RegularExpressions;public class ReadData : MonoBehaviour { string t = "asa df sad dfg asdf dsfg"; string[] split = Regex.Split(t,@"\...
阅读全文
摘要:一,哈希表(Hashtable)简述在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似key/value的键值对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtab...
阅读全文
摘要:在C#中,Dictionary提供快速的基于兼职的元素查找。他的结构是这样的:Dictionary ,当你有很多元素的时候可以使用它。它包含在System.Collections.Generic名空间中。在使用前,你必须声明它的键类型和值类型。方法/步骤要使用Dictionary集合,需要导入C#泛...
阅读全文
摘要:http://unity3d.9tech.cn/news/2013/1114/38624.htmlhttp://blog.csdn.net/gxq741718618gxq/article/details/8604828http://blog.csdn.net/chiuan/article/detai...
阅读全文
摘要:using UnityEngine;using System.Collections;public class goto1 : MonoBehaviour { public bool can = false; // Use this for initialization void Start () ...
阅读全文

浙公网安备 33010602011771号