public BonusPickup()
			{
				this.DemolitionCost = 400;

				this.IsVirtualPipe = true;

				this.ChosenAnimation = KnownAnimations.Emoticons.Random().ToAnimation().AttachContainerTo(this.Container);

				this.ChosenAnimation.MoveContainerTo(
					(Pipe.Size - this.ChosenAnimation.Info.Width) / 2,
					(Pipe.Size - this.ChosenAnimation.Info.Height) / 2
				);

				this.Disposing +=
					delegate
					{
						this.ChosenAnimation.Dispose();
					};
				
				this.PipeParts = new Pipe[]
				{
				};
			}
Example #2
0
 public AnimationState(AnimationCollection.Animation animation)
 {
     _animation   = animation ?? throw new ArgumentNullException(nameof(animation));
     _transitions = new List <Transition>();
 }