Why does my computer keep saying this? I'm still learning coding but know a good amount of it.,Why does my computer keep saying this? I' still learning but I know s good amount of it. And I'm practicing

alt text

,alt text

alt text

Maybe you should read the error message, if you dont know any of the words maybe try googling them but ok:


Cannot implicitely convert type bool
to UnityEngine.Gameobject


I’m not sure how I can write it any simpler but I will try. It means that somewhere you are trying to use a boolean/ bool in a place it expects a GameObject.


Implicit casting/ conversion just means you arent telling it that you are deliberately trying to do that and its failing because you havent provided those types with a way to perform that conversion (implicitly or otherwise), nor can/ should you.

slot_outline and slot are both gameObjects so you can not assign them values true and false, bools are true and false gameObjects are complex classes. You need to study variable type and C#.

Why don’t you try to add a default for the switch statement if none of the options work or just put your switch statement in the Update() function.