Exemplo n.º 1
0
 private void DeliConf()
 {
     GameObject.Find("Delivery/ConfBtn").GetComponent <DeliNodeBtn>().ItemDelivery();
     MyCanvas.SetActive("MenuUI/DeliSuccess", true);
     GameObject.Find("DeliSuccess").GetComponent <MessageView>().ItemDelivery_Success();
     doAnimation.Open_DOScale(GameObject.Find("DeliSuccess/BG"));
 }
Exemplo n.º 2
0
    public void Onclick_DeliQCheck()
    {
        doAnimation = GameObject.Find("DOAnimation").GetComponent <DOAnimation>();
        string     visScroll = visibleMenuUI.GetVisibleMenu() + "/BG/Scroll View/Viewport/Content";
        GameObject content   = GameObject.Find(visScroll);
        int        cnt       = 0;

        // 入力個数の確認
        for (int i = 0; i < content.transform.childCount; i++)
        {
            deliNodeText = content.transform.GetChild(i).GetComponentsInChildren <Text>();
            cnt         += int.Parse(deliNodeText[1].text);
        }

        if (cnt == 0)
        {
            MyCanvas.SetActive("MenuUI/Warning", true);
            GameObject.Find("Warning").GetComponent <MessageView>().ItemDerivery_Warning();
            doAnimation.Open_DOScale(GameObject.Find("Warning/BG"));
        }
        else
        {
            MyCanvas.SetActive("MenuUI/Confirmation", true);
            GameObject.Find("Confirmation").GetComponent <ConfirmationView>().Deli_Confimation();
            doAnimation.Open_DOScale(GameObject.Find("Confirmation/BG"));
        }
    }
Exemplo n.º 3
0
 public void OnClick_Save()
 {
     MyCanvas.SetActive("MenuUI/Confirmation", true);
     visibleMenuUI.SetVisibleMenu("MenuUI/Save");
     GameObject.Find("Confirmation").GetComponent <ConfirmationView>().Save_Confimation();
     doAnimation.Open_DOScale(GameObject.Find("Confirmation/BG"));
     //LoadData.DataSave();
 }
Exemplo n.º 4
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"));
    }
Exemplo n.º 5
0
    public void OnClick_ItemProd()
    {
        prodView = GameObject.Find("ItemsProd").GetComponent <ProdView>();
        prodView.ItemProd();

        MyCanvas.SetActive("MenuUI/Success", true);
        successView = GameObject.Find("Success").GetComponent <MessageView>();
        doAnimation = GameObject.Find("DOAnimation").GetComponent <DOAnimation>();
        successView.ItemProd_Success();

        doAnimation.Open_DOScale(GameObject.Find("Success/BG"));
    }