camera switch on ui button press

if i do it like this i get an error message


im i still doing it wrong or
(sorry its my second try to making a game so i dont know much yet)