摘要: Making a Popup and Closable Panel in Unity 5 script: public GameObject thePanel; public open() { thePannel.SetActive(true); } public open() { thePanne 阅读全文
posted @ 2016-04-17 16:34 wiessharling 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 断点调试功能可谓是程序员必备的功能了。Unity3D支持编写js和c#脚本,但很多人可能不知道,其实Unity3D也能对程序进行断点调试的。不过这个断点调试功能只限于使用Unity3D自带的MonoDevelop编辑器。而用Visual Studio是不行的。听说有个叫做UnityVS的东西可以使用 阅读全文
posted @ 2016-04-17 15:25 wiessharling 阅读(472) 评论(0) 推荐(0) 编辑
摘要: Network:Network.AllocateViewID - 自动生成一个可用的viewidNetwork.CloseConnection - 关闭当前连接Network.Connect - 连接到指定端口或者域名Network.connections -当前网络的连接数Network.conn 阅读全文
posted @ 2016-04-16 17:29 wiessharling 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: 一、创建脚本$cd /etc/init.d/$sudo vim svnserve内容如下#! /bin/shsudo svnserve -d -r /home/svn二、脚本权限设置sudo chmod +x svnserve三、将脚本加入启动顺序sudo update-rc.d svnserve ... 阅读全文
posted @ 2015-11-14 14:59 wiessharling 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: 一、设备终端class DeviceClient { int deviceID; int IP; int port; char connectID[16]; time_t lastTime; struct event timeoutEv;//超时器};typedef list deviceList;... 阅读全文
posted @ 2015-09-19 11:38 wiessharling 阅读(4609) 评论(0) 推荐(1) 编辑
摘要: echo "210 local100" >> /etc/iproute2/rt_tables echo "220 local200" >> /etc/iproute2/rt_tables echo "230 local300" >> /etc/iproute2/rt_tables... 阅读全文
posted @ 2015-09-16 09:36 wiessharling 阅读(922) 评论(0) 推荐(0) 编辑
摘要: svn st | grep '^\?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add 阅读全文
posted @ 2015-09-10 17:46 wiessharling 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 1. Lua 调用OC先看例子:hello.lua: -- 点击回调函数 local function notifymenuCallbackTest() local luaoc = require('luaoc') local ok, ret = luaoc.callStaticM... 阅读全文
posted @ 2015-09-10 17:28 wiessharling 阅读(3665) 评论(0) 推荐(0) 编辑
摘要: 第一部分Apple Push Notification Service首先第一步当然是介绍一下苹果的推送机制(APNS)咯(ps:其实每一篇教程都有),先来看一张苹果官方对其推送做出解释的概要图。Provider是给你手机应用发出推送消息的服务器,而APNS(Apple Push Notificat... 阅读全文
posted @ 2015-09-10 10:28 wiessharling 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1. 本地证书合成rm *.pemecho "export cert..."openssl pkcs12 -clcerts -nokeys -out push_cert.pem -in push_cert.p12echo "export key..."openssl pkcs12 -nocerts ... 阅读全文
posted @ 2015-09-10 10:01 wiessharling 阅读(263) 评论(0) 推荐(0) 编辑