Esempio n. 1
0
 public void LoadFrom(Stream stream)
 {
     BinaryReader reader = new BinaryReader(stream);
     m_GameObject = new PPtr<GameObject>(stream, file);
     lengthInSec = reader.ReadSingle();
     startDelay = reader.ReadSingle();
     speed = reader.ReadSingle();
     randomSeed = reader.ReadUInt32();
     looping = reader.ReadBoolean();
     prewarm = reader.ReadBoolean();
     playOnAwake = reader.ReadBoolean();
     moveWithTransform = reader.ReadBoolean();
     InitialModule = new InitialModule(stream);
     ShapeModule = new ShapeModule(file, stream);
     EmissionModule = new EmissionModule(stream);
     SizeModule = new SizeModule(stream);
     RotationModule = new RotationModule(stream);
     ColorModule = new ColorModule(stream);
     UVModule = new UVModule(stream);
     VelocityModule = new VelocityModule(stream);
     ForceModule = new ForceModule(stream);
     ExternalForcesModule = new ExternalForcesModule(stream);
     ClampVelocityModule = new ClampVelocityModule(stream);
     SizeBySpeedModule = new SizeBySpeedModule(stream);
     RotationBySpeedModule = new RotationBySpeedModule(stream);
     ColorBySpeedModule = new ColorBySpeedModule(stream);
     CollisionModule = new CollisionModule(file, stream);
     SubModule = new SubModule(file, stream);
 }