You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
997 B
38 lines
997 B
using UnityEngine; |
|
using System.Collections; |
|
using AX.Network; |
|
|
|
public class Equip |
|
{ |
|
public string selectedEquipName;//所选装备名(包括类型路径) |
|
} |
|
|
|
public class UnCostEquip : Equip |
|
{ |
|
|
|
} |
|
|
|
public class CostEquip : Equip |
|
{ |
|
public int selectedEquipNum;//所选装备数量 |
|
public int useNum;//消耗数量 |
|
public int unit;//单位 |
|
|
|
public CostEquip() { } |
|
public CostEquip(int unit) { this.unit = unit; } |
|
} |
|
|
|
|
|
|
|
public class pipeLine : CostEquip |
|
{ |
|
//构造函数不能继承,所以需要再实现 |
|
//public pipeLine() { }//无参构造函数,相当于public pipeLine() : base() { } |
|
//public pipeLine(int unit) : base(unit) { }//有参构造函数,相当于把pipeLine(int unit)中的参数unit传给了costEquip(unit),costEquip(unit)就把unit传给costEquip的有参构造函数进行unit的赋值 |
|
} |
|
|
|
public class lifeSaveLightLine : CostEquip |
|
{ |
|
//public lifeSaveLightLine() { } |
|
//public lifeSaveLightLine(int unit) : base(unit) { } |
|
}
|
|
|