Re: UI Bar connected to Variables
Posted: Sat May 25, 2024 6:35 am
It doesn't show and after interacting with an NPC who should increase the value, this is the error i'm getting:
InvalidCastException: Specified cast is not valid.
Confidence_bar.OnVariableChanged (System.String variableName, System.Object variableValue) (at Assets/Confidence_bar.cs:21)
Language.Lua.Assignment.SetKeyValue (Language.Lua.LuaValue baseValue, Language.Lua.LuaValue key, Language.Lua.LuaValue value) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/Assignment.cs:133)
InvalidCastException: Specified cast is not valid.
Confidence_bar.OnVariableChanged (System.String variableName, System.Object variableValue) (at Assets/Confidence_bar.cs:21)
Language.Lua.Assignment.SetKeyValue (Language.Lua.LuaValue baseValue, Language.Lua.LuaValue key, Language.Lua.LuaValue value) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Lua/Lua Interpreter/Chunk/Assignment.cs:133)