Пример #1
0
    public FarmObject GetStoreFacility(FarmObject findFarmObject)
    {
        FarmEditFooter componentInChildren = base.GetComponentInChildren <FarmEditFooter>();

        if (null == componentInChildren)
        {
            global::Debug.LogError("FarmEditFooter Not Found");
            return(null);
        }
        return(componentInChildren.GetRestStoreFacility(findFarmObject));
    }
Пример #2
0
    public void AddStoreFacility(FarmObject addFarmObject)
    {
        FarmEditFooter componentInChildren = base.GetComponentInChildren <FarmEditFooter>();

        if (null == componentInChildren)
        {
            global::Debug.LogError("FarmEditFooter Not Found");
            return;
        }
        componentInChildren.AddFacilityButton(addFarmObject);
    }
Пример #3
0
    public void EnableEditStoreButton(bool enable)
    {
        FarmEditFooter componentInChildren = base.GetComponentInChildren <FarmEditFooter>();

        if (null == componentInChildren)
        {
            global::Debug.LogError("FarmEditFooter Not Found");
            return;
        }
        componentInChildren.EnableStoreButton(enable);
    }