Exemple #1
0
    public void Onlick_No()
    {
        visibleMenuUI = GameObject.Find("FieldUI").GetComponent <MyCanvas>();
        doAnimation   = GameObject.Find("DOAnimation").GetComponent <DOAnimation>();
        doAnimation.Close_DOScale(GameObject.Find("Confirmation/BG"));

        if (visibleMenuUI.GetVisibleMenu().Equals("MenuUI/Save"))
        {
            visibleMenuUI.SetVisibleMenu("MenuUI/Main");
        }
    }
    public void Onclick_SuccessOK()
    {
        visibleMenuUI = GameObject.Find("FieldUI").GetComponent <MyCanvas>();
        doAnimation   = GameObject.Find("DOAnimation").GetComponent <DOAnimation>();


        if (visibleMenuUI.GetVisibleMenu().Equals("MenuUI/ItemsProd"))
        {
            doAnimation.Close_DOScale(GameObject.Find("Success/BG"));
            ProdView prodView   = GameObject.Find("ItemsProd").GetComponent <ProdView>();
            Text[]   detailText = GameObject.Find("ItemsProd").GetComponentsInChildren <Text>();
            prodView.RecipeDetail(detailText[2].text);
        }
        else if (visibleMenuUI.GetVisibleMenu().Equals("MenuUI/Delivery"))
        {
            doAnimation.Close_DOScale(GameObject.Find("DeliSuccess/BG"));
            GameObject.Find("Content").GetComponent <ScrollControll>().DeliveryScroll();
        }
        else if (visibleMenuUI.GetVisibleMenu().Equals("MenuUI/Save"))
        {
            doAnimation.Close_DOScale(GameObject.Find("Success/BG"));
            visibleMenuUI.SetVisibleMenu("MenuUI/Main");
        }
    }
Exemple #3
0
 public void OnClick_MenuMain()
 {
     StartCoroutine("GoMenuFade");
     visibleMenuUI.SetVisibleMenu("MenuUI/Main");
 }