1.继承MonoBehaviour类:任何一个游戏脚本都需要去继承MonoBehaviour这个类,只是在创建javascript脚本的时候,系统会将其类名与继承关系隐藏起来. 2.声明变量:使用Javascript声明任何变量的时候,都需要使用var关键字,并且需要在变量后面添加”:“以及具体对象类型与具体的数值.C#则使用对象类型加变量名的方式命名.例如:Javascript语言的脚本代码如下:public var i : int =0;var obj : GameObject; C#语言的…
1.首先下载opencv2.4.10,解压缩后放在合适的地方,然后根据自己的电脑(32位或64位)选择X86或X64,我的是32位,将“opencv存放路径\build\x86\vc12\bin”加入到系统的path环境变量中. 2.下载opencvsharp,它是一个给.net 框架使用的opencv卷绕(wrapper of OpenCV for .NET Framework),它不仅支持.net 框架,也支持.net 框架的另一个开源跨平台实现mono.Unity3D中的CS脚本的执行就是…
1.创建MySQL2Sqlite脚本mysql2sqlite.sh:(代码地址:https://gist.github.com/esperlu/943776) #!/bin/sh # Converts a mysqldump compatible file. It also extracts the MySQL `KEY xxxxx` from the # CREATE block and create them in separate commands _after_ all the INSE…