Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }