public override void RemoveChildEquipment(BaseEquipment baseEquipment)
 {
     if (equipmentList.Contains(baseEquipment))
     {
         equipmentList.Remove(baseEquipment);
     }
 }
Exemple #2
0
 /// <summary>
 /// 向装备栏中添加装备
 /// </summary>
 /// <param name="equipment"></param>
 public void AddEqupment(BaseEquipment equipment)
 {
     if (_equipments.Count < 6)
     {
         _equipments.Add(equipment.equipmentId, equipment);
     }
 }
        public void AddRecommendEquipment(BaseEquipment baseEquipment)
        {
            BaseEquipment ecop = CopyTool.DeepCopy <BaseEquipment>(baseEquipment);

            if (_recommendList.ContainsKey(ecop.equipmentId))
            {
                _recommendList.Add(ecop.equipmentId, ecop);
            }
        }
 public override void AddChildEquipment(BaseEquipment baseEquipment)
 {
     if (baseEquipment.equipmentType == EqunipmentType.SMALL)
     {
         equipmentLeafList.Add((EquipmentLeaf)baseEquipment);
     }
     else
     {
         equipmentCompmenTList.Add((EquipmentComponent)baseEquipment);
     }
 }
 public abstract void RemoveChildEquipment(BaseEquipment baseEquipment);
 public abstract void AddChildEquipment(BaseEquipment baseEquipment);
Exemple #7
0
 public override void RemoveChildEquipment(BaseEquipment baseEquipment)
 {
     //Debug.Log(2);
 }
Exemple #8
0
 public override void AddChildEquipment(BaseEquipment baseEquipment)
 {
     //Debug.Log(1);
 }