Ejemplo n.º 1
0
 public static SerializedProperty GetLuaDataElementProperty(SerializedProperty property, LuaInjection luaInjection)
 {
     return(property);
 }
Ejemplo n.º 2
0
    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;
        }
    }