Quote:
public text camSwitchButton ;
This line causes the error. You have declared a field whose type is a custom class called
text
, but that class does not exist.
Perhaps you meant
Text
? Remember that C# is case-sensitive.
If
Text
doesn't exist either, then you're going to have to go back to where you got that code from and find the missing class. If it's not there, then find a more reliable source to learn from.