Example #1
0
 public override void Save(GameDataWriter writer)
 {
     writer.write(shapes.Count);
     for (int i = 0; i < shapes.Count; i++)
     {
         writer.write(shapes[i].ShapeID);
         writer.write(shapes[i].MaterialID);
         shapes[i].Save(writer);
     }
 }
Example #2
0
 public virtual void Save(GameDataWriter writer)
 {
     writer.write(transform.localPosition);
     writer.write(transform.localRotation);
     writer.write(transform.localScale);
 }
Example #3
0
 public override void Save(GameDataWriter writer)
 {
     base.Save(writer);
     writer.write(color);
 }