static int set_addHotFix(IntPtr L) { if (LuaAPI.IsLuaFunction(L, -1)) { int reference = LuaAPI.ToLuaFunction(L); HotFix.addHotFix = new DelegateHelper <UnityEngine.Object, int, int, int>(reference); } return(0); }