//为第三方库或者系统库加特性
public static class AddThird
{
[CSharpCallLua]
public static List<Type> csharpCallLua = new List<Type>()
{
typeof(UnityAction<float>)
};
[LuaCallCSharp]
public static List<Type> luaCallCSsharp = new List<Type>()
{
typeof(GameObject),
typeof(Rigidbody)
};
//lua判断nil和null不一致 使用扩展方法
public static bool isNuLL(this object obj)
{
if (obj == null)
return false;
return true;
}
}
c#与lua之间调用 注意事项
最新推荐文章于 2023-11-10 11:10:42 发布