The problem is here:
void OnTriggerExit()
{
ChestText.text = false;
}
The error says that you are trying to store a value of type boolean, in a variable (property, field, member...) that expects a string value.
Luckily, in C# you do a
ToString()
function call and convert the data to string. So, change your function to:
void OnTriggerExit()
{
ChestText.text = false.ToString();
}
But again, what is the point of this? Maybe you wanted to modify
CurrentChest
?
boolean to string. | C# Online Compiler | .NET Fiddle[
^]