대시 보드이외의 영역 클릭 시 꺼지는 기능을 대시보드 버튼을 누를 때 꺼지도록 기능 개선

This commit is contained in:
정영민
2025-04-15 15:27:26 +09:00
parent 05c2b21e70
commit dc15253b83
6 changed files with 243 additions and 223 deletions

View File

@@ -51,17 +51,6 @@ namespace CHN
item.transform.localScale = Vector3.one;
return item;
}
private void Update()
{
if (Input.GetMouseButtonDown(0))
{
if (EventSystem.current.currentSelectedGameObject != null)
return;
transform.parent.gameObject.SetActive(false);
onCloseDashboard?.Invoke();
}
}
}
}