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)"); }
public FallingPiece(GamePiece gamePiece, int newRow) { GamePiece = gamePiece; this.newRow = newRow; }