public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.IsAmazing = stream.DeserializeBool("IsAmazing");;
     this._TheStateMachineProperty.SetState(stream.DeserializeString("TheStateMachine"));
     this.SomeUnityType = stream.DeserializeVector3("SomeUnityType");;
 }
Exemplo n.º 2
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Life = stream.DeserializeFloat("Life");;
     if (stream.DeepSerialize)
     {
         this.PowerUp = stream.DeserializeObject <PowerUpBaseViewModel>("PowerUp");
     }
     this.Position = stream.DeserializeVector3("Position");;
 }
Exemplo n.º 3
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize)
     {
         this.Player = stream.DeserializeObject <PlayerShipViewModel>("Player");
     }
     this.SpawnPoint       = stream.DeserializeVector3("SpawnPoint");;
     this.GameOver         = stream.DeserializeBool("GameOver");;
     this.NotificationText = stream.DeserializeString("NotificationText");;
     if (stream.DeepSerialize)
     {
         this.Asteroids.Clear();
         this.Asteroids.AddRange(stream.DeserializeObjectArray <AsteroidViewModel>("Asteroids"));
     }
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     this.Position = stream.DeserializeVector3("Position");;
     this.Health = stream.DeserializeInt("Health");;
 }
Exemplo n.º 5
0
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     transform.localPosition = stream.DeserializeVector3("Position");
 }
 public override void Read(ISerializerStream stream) {
     base.Read(stream);
     this.IsAmazing = stream.DeserializeBool("IsAmazing");;
     this._TheStateMachineProperty.SetState(stream.DeserializeString("TheStateMachine"));
     this.SomeUnityType = stream.DeserializeVector3("SomeUnityType");;
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
     if (stream.DeepSerialize) this.Player = stream.DeserializeObject<PlayerShipViewModel>("Player");
             this.SpawnPoint = stream.DeserializeVector3("SpawnPoint");;
             this.GameOver = stream.DeserializeBool("GameOver");;
             this.NotificationText = stream.DeserializeString("NotificationText");;
     if (stream.DeepSerialize) {
     this.Asteroids.Clear();
     this.Asteroids.AddRange(stream.DeserializeObjectArray<AsteroidViewModel>("Asteroids"));
     }
 }
 public override void Read(ISerializerStream stream)
 {
     base.Read(stream);
             this.Life = stream.DeserializeFloat("Life");;
     if (stream.DeepSerialize) this.PowerUp = stream.DeserializeObject<PowerUpBaseViewModel>("PowerUp");
             this.Position = stream.DeserializeVector3("Position");;
 }