コード例 #1
0
ファイル: FarmUI.cs プロジェクト: msruzy/digimon-linkz-client
    public void CreateFacilityButton(FarmObject farmObject)
    {
        string buttonPrefabName = farmObject.GetButtonPrefabName();

        if (!string.IsNullOrEmpty(buttonPrefabName))
        {
            GameObject gameObject = GUIManager.LoadCommonGUI(buttonPrefabName, this.facilityButtonAnchor);
            if (null != gameObject)
            {
                gameObject.transform.localPosition = Vector3.zero;
                FacilityButtonSet component = gameObject.GetComponent <FacilityButtonSet>();
                component.SetFacility(farmObject);
            }
            GUIFace.CloseDigiviceChildButton();
            GUIFace.CloseFacilityChildButton();
        }
    }
コード例 #2
0
    private void UIFarmCombine()
    {
        FarmUI componentInChildren = Singleton <GUIManager> .Instance.GetComponentInChildren <FarmUI>();

        GameObject gameObject = GUIManager.LoadCommonGUI("Farm/EditFooter", componentInChildren.gameObject);

        if (null != gameObject)
        {
            gameObject.name = "FarmEditFooter";
            this.HideGUI();
            if (null != PartsMenu.instance)
            {
                PartsMenu.instance.gameObject.SetActive(false);
            }
        }
        GUIFace.CloseDigiviceChildButton();
        GUIFace.CloseFacilityChildButton();
    }
コード例 #3
0
 private void UIFacilityStock()
 {
     GUIFace.CloseDigiviceChildButton();
     GUIFace.CloseFacilityChildButton();
     this.ShowCommonDialog(null, "CMD_FacilityStock");
 }