如何将C#脚本导入到lua中
摘要:以导入脚本MyEventListener为例 第一步:在脚本CustomSettings.cs中加入所需导入的脚本类 //在这里添加你要导出注册到lua的类型列表 public static BindType[] customTypeList = { _GT(typeof(MyEventListen
阅读全文
c#调用lua函数.
摘要:game.csusing LuaInterface;public class Game : MonoBehaviour { private LuaState lua = null; void Awake() { lua = new LuaState(); lua.Start(); string fu
阅读全文
lua代码设置unity对象的基础属性
摘要:设置对象的父节点: wall.transform:SetParent(GameObject.Find("Walls").transform) 设置颜色: wall:GetComponent("Image").color = UnityEngine.Color(111/255, 89/255, 89/
阅读全文