평소에는 버튼 눌렀을 때 게임 오브젝트 토글하는 코드를
target.SetActive(target.activeInHierarchy ? false : true);
이런 식으로 짰다.
고민해보니 더 간편하게 짤 수 있었다.
target.SetActive(!target.activeInHierarchy);
해당 bool값에 !를 통해 반대로 세팅이 가능했다!
사소하지만 위력적인것같다