コード例 #1
0
 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);
 }
コード例 #2
0
 static public void AddEq(BaseEquipment ski)
 {
     if (equipments == null)
     {
         equipments = new BaseEquipment[1];
     }
     else
     {
         equipments = Copy();
     }
     equipments[equipments.Length - 1] = ski;
 }