Exemple #1
0
    public override void Show()
    {
        base.Show();
        //------------背包----------------
        tempList = BackPack.Instance.AllItems();
        BackPack.Instance.ClearItems();
        BackPack.BackPackID = 3;
        BackPack.Instance.TransferItems(tempList);
        //------------背包----------------

        //------------角色----------------
        CharacterProperty player = PropertyManager.Instance.AllCharacters[0];

        CharacterPanel.Instance.ClearEquipments();
        CharacterPanel.charPanelID = 2;
        Debug.Log(player.WeaponWith.Name);
        CharacterPanel.Instance.SetEquipments(player.EquipmentProp.HeadID, player.EquipmentProp.ClothID, player.EquipmentProp.PantsID, player.EquipmentProp.BeltID, player.WeaponWith);
        PropertyManager.Instance.SetTextShow();

        teamPanel.ClearAllTeam();
        for (int i = 0; i < PropertyManager.Instance.CompanionCharBase.Count; i++)
        {
            teamPanel.SetNewTeam(PropertyManager.Instance.CompanionCharBase[i]);
        }
        CharacterPanel.Instance.CheckAllSlot();
        //------------角色----------------
    }