Пример #1
0
 public PlayerWalkState(Tom tom, Animation animationLeft, Animation animationRight)
     : base(tom, animationLeft, animationRight)
 {
 }
Пример #2
0
 public PlayerJumpState(Tom tom, Animation animationLeft, Animation animationRight)
     : base(tom, animationLeft, animationRight)
 {
     animationLeft.Handler  = new Animation.OnFinish(SwitchToFallingAnimation);
     animationRight.Handler = new Animation.OnFinish(SwitchToFallingAnimation);
 }
Пример #3
0
 public PlayerFallingState(Tom tom, Animation animationLeft, Animation animationRight)
     : base(tom, animationLeft, animationRight)
 {
 }
Пример #4
0
 public PlayerState(Tom tom, Animation animationLeft, Animation animationRight)
 {
     this.tom            = tom;
     this.animationLeft  = animationLeft;
     this.animationRight = animationRight;
 }
 public PlayerWalkStopState(Tom tom, Animation animationLeft, Animation animationRight)
     : base(tom, animationLeft, animationRight)
 {
     animationLeft.Handler  = new Animation.OnFinish(SwitchToIdleAnimation);
     animationRight.Handler = new Animation.OnFinish(SwitchToIdleAnimation);
 }
 public PlayerHangingState2(Tom tom, Animation animationLeft, Animation animationRight)
     : base(tom, animationLeft, animationRight)
 {
 }