public static SerializedProperty GetLuaDataElementProperty(SerializedProperty property, LuaInjection luaInjection) { return(property); }
private void SetLuaTable <TKey>(LuaTable luaTable, TKey fieldName, LuaData luaData, LuaInjection luaInjection) { switch (luaInjection) { case LuaInjection.AnimationCurve: luaTable.Set(fieldName, luaData.animationCurve); break; case LuaInjection.Component: luaTable.Set(fieldName, luaData.unityObject); break; default: luaTable.Set(fieldName, luaData.unityObject); break; } }