대시 보드이외의 영역 클릭 시 꺼지는 기능을 대시보드 버튼을 누를 때 꺼지도록 기능 개선
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user