오늘의 기능
IsPointerOverGameObject() 라는 함수는 UI가 클릭되면 true를 아니면 false를 반환합니다.
그렇기에
if(Input.GetMouseButtonDown(0)) { if(!EventSystem.current.IsPointerOverGameObject()) { //클릭 처리 } }
를 하면?
ui를 클릭했을 때 게임화면이 클릭되는 상황을 방지할 수 있다!