201808-17 xLua调用Unity协程Coroutine工作 xLua中也会频繁的使用Unity协程做一些事情,比如WWW下载、WaitForSeconds、WaitForEndOfFrame、WaitForSecondsRealtime等等 本次的教程就是教会大家如何在Lua调用Unity协程工作,xLua里有coroutine的介绍,这里就不再多说了。 .... Read More >
201806-03 Lua中的消息分发实现 Lua中的消息分发和C#实现的比较类似,使用很方便。 这个是C#的教程地址:http://www.u3d8.com/?p=1298 上代码: LuaEvent类: [crayon-6ad3658e17819609715935/] LuaEventMgr管理类: [crayon-6ad3658e1781f196775839/] LuaEventType: [crayon-.... Read More >
201805-24 Lua中用Split函数分割字符串 本文实现在lua中string字符串的分割。使用方法如下: 接口: [crayon-6ad3658e17d0f004610050/] 调用: [crayon-6ad3658e17d13728609038/] .... Read More >