Im trying to do an if statement where i say if (collect = GameObject.FindGameObjectWithTag(“player”) && collecttrue == true) but in the console says Cannot implicitly convert type ‘bool’ to ‘UnityEngine.GameObject’
any ideas?
EDIT : Im new to unity
You wanted to write:
if (collect == GameObject.FindGameObjectWithTag("player") [...]
thanks a lot! begginer mistake i guess
It happens to all of us. Don’t worry.