How can I perform unity check if gameobject exists
I'm making an AI that checks if the player exists or not. How do I check if a certain object exists and put it in a boolean variable?
try using GameObject.FindGameObjectsWithTag or GameObject.FindWithTag or by name (or namepath) GameObject.Find
bool playerexists = (GameObject.Find("player") != null) for unity check if gameobject exists