public void OpenPanel() { if (anim.GetBool("IsOpen")) { return; } AstroMgr.instance.AnimCtrl(false); AstroMgr.instance.CloseAllPanel(); SetSource(sourceIndex); anim.SetBool("IsOpen", true); isOpen = true; OpenBtn.SetActive(false); }
public void ClosePanel() { if (isDetail) { isDetail = false; anim.SetBool("IsDetail", false); } else if (isCustom) { isCustom = false; anim.SetBool("IsCustom", false); } else { anim.SetBool("IsOpen", false); isOpen = false; SearchBar.interactable = true; SearchBar.alpha = 1f; OpenBtn.SetActive(true); } title.text = "Asteorid Search"; searchInput.text = ""; detailBtn.SetActive(true); }