02 2017 档案
摘要:C#预编译宏并不像C++那样编译之后就不存在了。在UNITY的C#脚本中 #if UNITY_ANDROID && !UNITY_EDITOR AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
阅读全文
摘要:1.Resources文件夹 Resources文件夹是一个只读的文件夹,通过Resources.Load()来读取对象。因为这个文件夹下的所有资源都可以运行时来加载,所以Resources文件夹下的所有东西都会被无条件的打到发布包中。建议这个文件夹下只放Prefab或者一些Object对象,因为P
阅读全文
摘要:local heroInfo = {} --直接打印 table的名字,就会输出该table的内存地址 print("表地址---------------",heroInfo) --注意区别PrintInfo,PrintInfo2与TestSelf两个函数中self的不同 --有什么不? heroInfo.PrintInfo = function(self, x)--这里的self仅是我...
阅读全文
摘要:table在删除元素时要注意,例t = { "hello", "world", "!"}t[1] = nil此时print(#t) --输出3,就是说把表的元素置为nil并没有移除该表项。 但,若是: 再看更诡异的
阅读全文
摘要:转载请注明,来自:http://blog.csdn.net/skyman_2001 update to revision和revert to revision很像,都会融合你本地未提交的修改。它们2个的区别是:revert to revision会把这个rev作为最新版本,而update to re
阅读全文
摘要:static void Main(string[] args) { MemoryStream ms = new MemoryStream(); BinaryWriter bw = new BinaryWriter(ms); int ix0 = 0x12341314;//注意 int ...
阅读全文