Ejemplo n.º 1
0
 private void AppearAnimation()
 {
     Program.state++;
     this.pic.Image = Program.GetPic(kind);
     anim = new SizeAnimation(0, 200, 0, 30, this, AppearFinished);
 }
Ejemplo n.º 2
0
 public void DisappearAnimation()
 {
     Program.state++;
     anim = new SizeAnimation(0, 300, 30, 0, this, DisappearFinished);
 }
Ejemplo n.º 3
0
 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);
 }