示例#1
0
 private void AddExplodeAnimation(GamePiece gamePiece, Storyboard storyboard)
 {
     DoubleAnimation fadeAnimation = GetAnimation(0.5, 0, 1);
     fadeAnimation.EasingFunction = new BounceEase();
     storyboard.Children.Add(fadeAnimation);
     Storyboard.SetTarget(fadeAnimation, gamePiece.GetUIElement());
     Storyboard.SetTargetProperty(fadeAnimation, "(UIElement.Opacity)");
 }
示例#2
0
 public FallingPiece(GamePiece gamePiece, int newRow)
 {
     GamePiece = gamePiece;
     this.newRow = newRow;
 }