diff --git a/Assets/Fungus/Thirdparty/FungusLua/Resources/Types/UnityTypes.txt b/Assets/Fungus/Thirdparty/FungusLua/Resources/Types/UnityTypes.txt index e268512a..716d2964 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Resources/Types/UnityTypes.txt +++ b/Assets/Fungus/Thirdparty/FungusLua/Resources/Types/UnityTypes.txt @@ -29,6 +29,7 @@ "UnityEngine.Matrix4x4, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnityEngine.MonoBehaviour, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnityEngine.Object, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", + "UnityEngine.PlayerPrefs, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnityEngine.PrimitiveType, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnityEngine.Quaternion, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnityEngine.Rect, UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", diff --git a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs index 5d1378a3..ab6299ca 100644 --- a/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs +++ b/Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaUtils.cs @@ -209,6 +209,7 @@ namespace Fungus // Static classes fungusTable["time"] = UserData.CreateStatic(typeof(Time)); + fungusTable["playerprefs"] = UserData.CreateStatic(typeof(PlayerPrefs)); fungusTable["prefs"] = UserData.CreateStatic(typeof(FungusPrefs)); fungusTable["factory"] = UserData.CreateStatic(typeof(PODTypeFactory));