강조 효과 활성화/비활성화 조건 수정
This commit is contained in:
@@ -25,12 +25,9 @@ namespace CHN
|
||||
private List<UI_FilterButton> filters = new List<UI_FilterButton>();
|
||||
|
||||
public UI_FilterButton pre_labelButton;
|
||||
public UI_LibraryButton pre_libraryButton;
|
||||
|
||||
public Action<string> onClickLabelButton;
|
||||
public Action<Machine> onClickLibraryButton;
|
||||
public Action<UI_LibraryButton> onDeselectLibraryButton;
|
||||
public Action onClose;
|
||||
public Action<string> onClickLibraryOpenButton;
|
||||
public Action<string> onClickLibraryCloseButton;
|
||||
|
||||
@@ -115,7 +112,6 @@ namespace CHN
|
||||
Image_Open.gameObject.SetActive(true);
|
||||
Image_Close.gameObject.SetActive(false);
|
||||
|
||||
onClose?.Invoke();
|
||||
StopAllCoroutines();
|
||||
StartCoroutine(MoveAnimation(downPos));
|
||||
}
|
||||
@@ -138,12 +134,7 @@ namespace CHN
|
||||
|
||||
private void OnClickLibraryButton(UI_LibraryButton machineButton)
|
||||
{
|
||||
if (pre_libraryButton != null)
|
||||
{
|
||||
onDeselectLibraryButton?.Invoke(pre_libraryButton);
|
||||
}
|
||||
pre_libraryButton = machineButton;
|
||||
onClickLibraryButton?.Invoke(pre_libraryButton.machine);
|
||||
onClickLibraryButton?.Invoke(machineButton.machine);
|
||||
}
|
||||
|
||||
IEnumerator MoveAnimation(Vector3 targetPos)
|
||||
|
||||
Reference in New Issue
Block a user