private void AppearAnimation() { Program.state++; this.pic.Image = Program.GetPic(kind); anim = new SizeAnimation(0, 200, 0, 30, this, AppearFinished); }
public void DisappearAnimation() { Program.state++; anim = new SizeAnimation(0, 300, 30, 0, this, DisappearFinished); }
public void MoveAnimation(int startDelay,bool target,int kind) { Program.state++; this.pic.Image = Program.GetPic(kind); if (target) { this.kind = kind; anim = new SizeAnimation(startDelay, 0, 30, 30, this, TargetMoveFinished); } else anim = new SizeAnimation(startDelay, 200, 20, 0, this, MoveFinished); }