Пример #1
0
 public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
     if (side == 1)
     {
         mobileElement.CurrentHorizontalAcceleration = mobileElement.DefaultHorizontalAcceleration / 10;
     }
 }
Пример #2
0
 public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
     if (side == 1)
     {
         mobileElement.SpeedY = -12;
     }
 }
Пример #3
0
 public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
     base.ActionOnTouch(mobileElement, side, map);
     if (!(mobileElement is Player))
     {
         mobileElement.Die(map);
     }
 }
Пример #4
0
 public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
     base.ActionOnTouch(mobileElement, side, map);
     if (mobileElement is Player player)
     {
         player.Win = true;
     }
 }
Пример #5
0
 public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
     base.ActionOnTouch(mobileElement, side, map);
     if (mobileElement is Player player)
     {
         player.Checkpoint = new Vector2(Left, Bottom - 1);
     }
 }
Пример #6
0
 public virtual void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map)
 {
 }