摘要: Key codes returned by Event.keyCode. These map directly to a physical key on the keyboard. KeyCode是由Event.keyCode返回的。这些直接映射到键盘上的物理键。 Values值 None Not 阅读全文
posted @ 2016-12-09 10:03 叶小鹏 阅读(1457) 评论(0) 推荐(0) 编辑
摘要: 一、Buttonunity edit: Sprite作为父对象和背景 -- Collider -- Button script Label 作为子对象和显示文字代码: private UIButton Button; void Start () { EventDelegate btnOnClickE 阅读全文
posted @ 2016-12-06 15:30 叶小鹏 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 系统环境: ubuntu 16.04 64bitSDK版本: esp_iot_sdk_v1.3.0记录时间: 2016年10月13日联系方式: yexiaopeng1992@126.com 背景:在Esp8266上实现Mqtt,使之可以和Mqtt服务器进行数据通讯,代替原本项目中使用的socket通 阅读全文
posted @ 2016-10-13 16:16 叶小鹏 阅读(3693) 评论(0) 推荐(0) 编辑
摘要: 时间:2016年9月24日17:38:21 作者:yexiaopeng 博客园 在unity3d的世界中,其坐标系可分为四种,世界坐标系-WorldSpace 本地坐标系-LocalSpace 屏幕坐标系-ScreenSpace 视口坐标-ViewPortSpace。其中作者本人当前面对的是世界坐标 阅读全文
posted @ 2016-09-24 17:39 叶小鹏 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 如下代码: 在Main中做如下操作: 输出: age=234age=122 但如果将 set get 采用简写方式,代码如下 Main中内容不变,得到如下结果 age=0age=234 如果修改Main中代码顺序如下 结果为 age=0age=122 更新 时间:2016/09/19 仔细思考后,a 阅读全文
posted @ 2016-09-10 16:31 叶小鹏 阅读(3873) 评论(0) 推荐(0) 编辑
摘要: 运行结果:sssssddddd 阅读全文
posted @ 2016-09-07 13:22 叶小鹏 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 编译: # g++ test.cpp -I/usr/local/include /usr/local/lib/-ljson_linux-gcc-4.4.5_libmt.a 运行: #./a.out 输出; data: {"dstdeviceID":456,"mprotocolID":5858,"mp 阅读全文
posted @ 2016-08-30 11:23 叶小鹏 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1. 循环语句 Go只有for一个循环语句关键字,但支持3种形式 初始化和步进表达式可以是多个值 条件语句每次循环都会被重新检查,因此不建议在条件语句中 使用函数,尽量提前计算好条件并以变量或常量代替 左大括号必须和条件语句在同一行 1.1 for 的无限循环 1.2 for 带条件表达式 1.3 阅读全文
posted @ 2016-06-20 00:47 叶小鹏 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-16 16:11 叶小鹏 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1.基础开发环境 阅读全文
posted @ 2016-06-15 09:05 叶小鹏 阅读(165) 评论(0) 推荐(0) 编辑