Ejemplo n.º 1
0
    private void VisProdlView()
    {
        nodeText    = this.GetComponentInChildren <Text>();
        doAnimation = GameObject.Find("DOAnimation").GetComponent <DOAnimation>();
        MyCanvas.SetActive("MenuUI/ItemsProd", true);
        prodView = GameObject.Find("ItemsProd").GetComponent <ProdView>();
        prodView.RecipeDetail(nodeText.text);

        doAnimation.Open_DOScale(GameObject.Find("ItemsProd/BG"));
    }
Ejemplo n.º 2
0
    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");
        }
    }