Should a GameObject method be called through its instance or directly? To me these look the same but I am not sure if there is some pitfall here that I am unaware of. Is there any benefit of calling a GameObject method over the other here?
icon.gameObject.SetActive(false);
vs
icon.SetActive(false);
Thanks