コード例 #1
0
    private void InitVar()
    {
        GameObject BagSystem = GameObject.Find("BagSystem");

        TechniquePanel = BagSystem.transform.FindChild("TechniqueUpgradePanel").GetComponent <TechniquePanel>();
        BagGrild       = BagSystem.transform.FindChild("Bag").transform.FindChild("BagItemGroup").GetComponent <BagGrild>();

        add2BtnListbyName("Yes_btn");
        add2BtnListbyName("No_btn");
        InitBtnsDelegate();
    }
コード例 #2
0
    private void InitBtn()
    {
        sold   = transform.FindChild("soldBtn").gameObject.GetComponent <Button>();
        cancel = transform.FindChild("cancelBtn").gameObject.GetComponent <Button>();
        SoldButtonList.Add(sold);
        SoldButtonList.Add(cancel);

        InputText = transform.FindChild("InputField").GetComponent <InputField>();

        bagGrild = GameObject.Find("Bag").transform.FindChild("BagItemGroup").GetComponent <BagGrild>();

        saleSound = GetComponent <AudioSource>();
    }