原创 開發智能合約 solidity eth eos 區塊鏈開發

開發以太坊 ETH、EOS智能合約:發幣類、競猜類、會員分紅、溯源等,小程序開發。聯繫微信:13585958133 ,微信二維碼

原创 json 在線格式化

http://tool.oschina.net/codeformat/json/

原创 Unity3D研究院之主角面朝方向一定區域內對象角度計算

http://www.xuanyusong.com/archives/1977

原创 shader實例(四十二)遮擋顯示

3D遊戲中主角會經常被牆壁之內的東西擋住,此時爲了達到突出主角的效果,會做一些特殊處理讓主角顯示出來。 比如如下效果:   雖然網上有類似的代碼,但是如果我們想擴展達到其他更好的效果,還是得了解其運行原理。 代碼不是很多,使用的函數

原创 libgconf-2.so.4: cannot open shared object file: No such file or directory

I was able to get it to run by installing the required dependency program by typing ~$ sudo apt-get install libgconf-2-

原创 Shader 時間

_Time float4 Time (t/20, t, t*2, t*3), use to animate things inside the shaders. _SinTime float4 Sine

原创 solidity 銷燬編譯錯誤

在其他一些比較老的教程裏面,你可能會看到suicide()方法,但是爲了語言更好的可讀性,這個方法目前已經重新命名,以後如有需要,大家直接調用selfdestruct()方法就好。

原创 c# lua 簡單交互

using System; using System.Collections.Generic; using System.Text; using LuaInterface;         // lua

原创 解決ngui 粒子 層級顯示問題

public class ControlParticle : MonoBehaviour {        public int renderQueue = 30000;          public bool runOnlyOnce

原创 Protocol Buffers Lua API總結 -- 內置類型的repeated使用append() 複合類型的repeated使用add()

本文介紹的關於protocol buffers的api是基於protoc-gen-lua(see in github)這個項目的。 我的使用經驗都是在開發Cocosd-x遊戲的時候,lua腳本與服務器通信採用了protocol b

原创 Unity3D 單例 c#

public class ObjectLoad: MonoBehaviour {     private static ObjectLoad instance;     private static Ga

原创 Unity5.0 解密

1.安裝好軟件,我們解壓破解包,有下面兩個文件,Unity 和Unity_v5.x.ulf,放桌面。 2.打開終端。 3.輸入文件地址,注意,我這上邊的用戶名,記得改成自己的用戶名。cd /Users/xxxxxxxxx/Desktop/

原创 C# delegate event

 C# 代理事件步驟總結: 1.定義委託(託簽名相同的所有方法)類型。 2.定義委託事件變量。 3.通知事件。 4.訂閱事件。 5.調用事件。

原创 testrpc: command not found

sudo vim  /etc/profileexport PATH="$PATH:/home/zjm/.npm-global/bin"source /etc/profile

原创 Unity3D 射線指定層獲取GameObject 注意 LayerMask

這一篇是純技術討論,看過我前面文章的童鞋應該清楚,我的奔跑是靠鼠標響應的,鼠標點到哪就跑到哪,後來又有了界面,麻煩就來了,我的界面竟然能點 穿,我不希望點界面的時候還能點到界面後面的地面上,角色傻不拉幾的往那跑,那腫麼辦呢,總不能每