摘要: 对于在Unity中播放视频的用法,这里有篇文章说的很详细了,参考Unity3D研究院之两种方式播放游戏视频本文主要针对Android平台调用的视频资源存放位置写个备注.移动平台视频播放调用的接口如下:public static bool PlayFullScreenMovie(string path... 阅读全文
posted @ 2015-08-19 21:19 michael111 阅读(3648) 评论(0) 推荐(0) 编辑
摘要: 本文转载于:http://www.ruanyifeng.com/blog/2012/08/how_to_read_diff.html版权所有归原作者1. 前言 diff是Unix系统的一个很重要的工具程序。 它用来比较两个文本文件的差异,是代码版本管理的基石之一。你在命令行下,输入: ... 阅读全文
posted @ 2015-08-18 20:29 michael111 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 迭代器模式 定义参考 wiki:Iterator pattern 迭代器模式就是分离了集合对象的遍历行为,抽象出一个迭代器类来负责,这样既可以做到不暴露集合的内部结构,又可让外部代码透明地访问集合内部的数据。 ------- 节选自 《大话设计模式》P207 我们可以将迭代器模式抽离出几个... 阅读全文
posted @ 2015-04-11 02:07 michael111 阅读(170) 评论(0) 推荐(0) 编辑
摘要: (在命令行下通过 svn help xxx 来查看xxx命令的文档)1. add (将文件加入版本管理) Put files and directories under version control, schedulingthem for addition to repository. They... 阅读全文
posted @ 2015-04-09 09:22 michael111 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 转自:http://wiki.unity3d.com/index.php/Special_Folder_Names_in_your_Assets_FolderUnity中一些特定名字的文件夹有特殊的属性.Hidden Folders Unity会忽略以.起始命名的文件夹(例如 ".UnitTest... 阅读全文
posted @ 2015-04-08 01:15 michael111 阅读(2775) 评论(0) 推荐(0) 编辑
摘要: 1. Mathf.RoundToInt 函数If the number ends in .5 so it is halfway between two integers, one of which is even(偶数) and the other odd(奇数), the even number ... 阅读全文
posted @ 2014-02-19 22:59 michael111 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 文章来自微软官网:http://msdn.microsoft.com/zh-cn/library/yz2be5wk.aspx 装箱是将值类型转换为object类型或由此值类型实现的任何接口类型的过程。当CLR对值类型进行装箱时,会将该值包装到System.Object内部,再将后者存储在托管堆上。... 阅读全文
posted @ 2014-02-09 21:55 michael111 阅读(796) 评论(0) 推荐(0) 编辑
摘要: GameObject使用position的set方法改变位置无效 阅读全文
posted @ 2014-01-17 21:09 michael111 阅读(5588) 评论(0) 推荐(0) 编辑
摘要: 当在shell下按错键时,笔记本会发出滴滴滴的蜂鸣声,声音比较烦人,这里记录下关闭&开启蜂鸣声的指令:如果指令输入后 not permitted, 请键入su 登录root权限后再执行指令关闭蜂鸣声:rmmod pcspkr 开启蜂鸣声:modprobe pcspkrpcspkr = pc s... 阅读全文
posted @ 2013-06-15 17:58 michael111 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: 项目地址: http://luaforge.net/projects/luaproc/项目介绍: luaproc is a concurrent programming library for Lua. It implements an approach, geared towards massiv... 阅读全文
posted @ 2013-06-15 17:30 michael111 阅读(712) 评论(0) 推荐(0) 编辑