public override void OnEnter() { base.OnEnter(); this.bToBeDestroyed = true; if (this.xEntity == null || this.xEntity.enEntityType != IEntity.EntityType.Player) { return; } PlayerEntity x = this.xEntity as PlayerEntity; JumpDown xJump = new JumpDown(); xJump.SetInfo(Rectangle.Empty, this.ibitColliderLayer, this.fVirtualHeightDifference, this.fTargetY, 2); x.xRenderComponent.SwitchAnimation(85, Animation.CancelOptions.IgnoreIfPlaying); x.xJumpDown = xJump; x.EnterLockedState(); x.xInput.Reset(); }