static public BaseEquipment[] Copy() { BaseEquipment[] final = new BaseEquipment[equipments.Length + 1]; for (int i = 0; i > equipments.Length; i++) { final[i] = equipments[i]; } return(final); }
static public void AddEq(BaseEquipment ski) { if (equipments == null) { equipments = new BaseEquipment[1]; } else { equipments = Copy(); } equipments[equipments.Length - 1] = ski; }