public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map) { if (side == 1) { mobileElement.CurrentHorizontalAcceleration = mobileElement.DefaultHorizontalAcceleration / 10; } }
public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map) { if (side == 1) { mobileElement.SpeedY = -12; } }
public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map) { base.ActionOnTouch(mobileElement, side, map); if (!(mobileElement is Player)) { mobileElement.Die(map); } }
public override void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map) { base.ActionOnTouch(mobileElement, side, map); if (mobileElement is Player player) { player.Win = true; } }
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); } }
public virtual void ActionOnTouch(MobileGameObject mobileElement, int side, List <GameObject> map) { }