Пример #1
0
 /// <summary>
 /// 更新 LuaVarObjectInfo 至 lua 脚本上
 /// </summary>
 /// <param name="v"></param>
 public void UpdateVarToLua(LuaVarObjectInfo v)
 {
     if (!string.IsNullOrEmpty(v.Name))
     {
         v.UpdateToLua(LuaSelf);
     }
 }
Пример #2
0
 /// <summary>
 /// 从 lua 脚本上获取 lua 变量更新至 LuaVarObjectInfo
 /// </summary>
 /// <param name="v"></param>
 public void UpdateVarFromLua(LuaVarObjectInfo v)
 {
     v.UpdateFromLua(LuaSelf);
 }