Exemplo n.º 1
0
    public void LoadTree(DataManager.TreeData <Item> treeData)
    {
        enclosure.FillSlot(treeData.Enclosure);

        groundL.FillSlot(treeData.GroundL);

        groundR.FillSlot(treeData.GroundR);

        glasses.FillSlot(treeData.Glasses);

        neck.FillSlot(treeData.Neck);

        foliage.FillSlot(treeData.Foliage);

        pendants.FillSlot(treeData.Pendants);

        treeNameText.text = treeData.Name;

        GenderSelector genderSelector = GetComponent <GenderSelector>();

        if (genderSelector != null)
        {
            genderSelector.SetGender(treeData.Gender);
        }
    }
Exemplo n.º 2
0
    public void LoadTree(DataManager.TreeData <Item> treeData)
    {
        enclosure.FillSlot(treeData.Enclosure);

        groundL.FillSlot(treeData.GroundL);

        groundR.FillSlot(treeData.GroundR);

        glasses.FillSlot(treeData.Glasses);

        neck.FillSlot(treeData.Neck);

        foliage.FillSlot(treeData.Foliage);

        pendants.FillSlot(treeData.Pendants);
    }