コード例 #1
0
 public void Initialize()
 {
     if (is_part)
     {
         if (Part == null)
         {
             Part = ShipPart.Get(health, gameObject, parttype, mass);
         }
         else
         {
             // Debugging purpuses, can be removed befre compiling
             health   = Part.HP;
             mass     = Part.Mass;
             parttype = Part.parttype;
         }
         Part.main_component = is_main;
         DestObj             = Part;
     }
 }