示例#1
0
 private void UpdateSizePositionWithMovement(Transform2D sender, TransformMovedEventArgs args)
 {
     this.Size = new Rectangle((int)this.Position.X, (int)this.Position.Y, this.Size.Width, this.Size.Height);
 }
示例#2
0
 private void MoveWithParent(Transform2D sender, TransformMovedEventArgs args)
 {
     this.Position -= args.Movement;
 }