unity set gameobjecty to enabled code example
Example 1: unity enable gameobject
GameObject.Find("PlayMenu 3").SetActive(false);
// you could also store a GameObject as variable
Example 2: deactivate a gameobject unity
public void SetActive(bool value);