摘要:
c# 部分 public class Test5Obj { public int i; private string str; public Test5Obj() { } public void PrintInt() { Debug.Log($"c# PrintInt:{i}"); } public 阅读全文
摘要:
协程是单线程运行的,它只是提供了一种代码在当前位置暂停,后续还能在当前位置恢复继续执行下去的机制。 1, 启动协程, 以及yield local co1Func = function(str1, str2) for i=1,2 do print(" ", i, str1, str2) local s 阅读全文
摘要:
lua代码 Assets/Lua/Test1.lua.txt function IntParam(p) print("~~~~~ IntParam") print(type(p), p) print("~~~~~") return p end function Vec3Param(p) print( 阅读全文
摘要:
最近在写一个配置表导出工具,自动生成代码那边会用到模板引擎,所以就熟悉了下Liquid的使用。 需要用到一个DotLiquid的库 using DotLiquid; var lqTemplate = Template.Parse(templateContent); var templateHash 阅读全文