Пример #1
0
 public override void RestoreModelState(GameObject model_ptr)
 {
     base.RestoreModelState(model_ptr);
     ((PhysicalObject)model_ptr).Velocity = velocity.ToVector2();
     ((PhysicalObject)model_ptr).Ghost    = ghost;
     ((PhysicalObject)model_ptr).last_computed_velocity = last_velocity.ToVector2();
 }
Пример #2
0
 public virtual void RestoreModelState(GameObject model_ptr)
 {
     model_ptr.Position = pos.ToVector2();
     model_ptr.color    = color.ToColor();
     model_ptr.Sprite.ChangeState(sprite_state);
     model_ptr.Sprite.ChangeFrame(sprite_frame);
     model_ptr.Sprite.ChangeDirection(sprite_direction);
 }