示例#1
0
 public void MergeFrom(PreFab other)
 {
     if (other == null)
     {
         return;
     }
     if (other.NodeSize != 0)
     {
         NodeSize = other.NodeSize;
     }
     if (other.startingPoint_ != null)
     {
         if (startingPoint_ == null)
         {
             startingPoint_ = new global::Basic_Pathfinder.PreFab.Location();
         }
         StartingPoint.MergeFrom(other.StartingPoint);
     }
     if (other.goalPoint_ != null)
     {
         if (goalPoint_ == null)
         {
             goalPoint_ = new global::Basic_Pathfinder.PreFab.Location();
         }
         GoalPoint.MergeFrom(other.GoalPoint);
     }
     prefab_.Add(other.prefab_);
 }