Ejemplo n.º 1
0
    IEnumerator ShowCurPanel()
    {
        //currentPanel.SetActive(true);
        yield return(new WaitForEndOfFrame());

        currentPanel.GetComponent <Animation>().Play("Panel_Show");
        leftMenuAnim.GetComponent <Animation>().Play("LeftMenu_Hide");
        TopBlockMenu.GetComponent <Animation>().Play("TopBlock_Show");
    }
Ejemplo n.º 2
0
 public void MainMenu_Btn()
 {
     if (leftMenuAnim.transform.localPosition.x == -540)
     {
         currentPanel.GetComponent <Animation>().Play("Panel_Show");
         leftMenuAnim.GetComponent <Animation>().Play("LeftMenu_Hide");
         TopBlockMenu.GetComponent <Animation>().Play("TopBlock_Show");
     }
     else
     {
         currentPanel.GetComponent <Animation>().Play("Panel_Hide");
         leftMenuAnim.GetComponent <Animation>().Play("LeftMenu_Show");
         TopBlockMenu.GetComponent <Animation>().Play("TopBlock_Hide");
         GameObject.Find("LoginRegisterController").GetComponent <LoginController>().DestroyColonyPrefabs();
         slider.SetActive(false);
         MessagePanel.SetActive(false);
         DropDownPanels.SetActive(false);
         currentPanel.SetActive(true);
     }
 }