public void Read(AssetReader reader)
 {
     Collider.Read(reader);
     if (IsReadDoubleColliderPath(reader.Version))
     {
         m_colliderPaths = reader.ReadArrayDouble <IntPoint>();
     }
     else
     {
         IntPoint[] colliderPaths = reader.ReadArray <IntPoint>();
         m_colliderPaths = new IntPoint[][] { colliderPaths };
     }
     reader.AlignStream(AlignType.Align4);
 }
Exemple #2
0
 public void Read(AssetReader reader)
 {
     m_paths = reader.ReadArrayDouble <Vector2f>();
     reader.AlignStream(AlignType.Align4);
 }