private void Creature_CollisionWithTiles(CollidableGameObject velocity, CollidedCell collidedCell) { if (collidedCell.Direction.X != 0) { if (!_sawPlayer) Creature.HDirection = (HDirection)((sbyte)(Creature.HDirection) * -1); else { Creature.Jump(); } } }
private void OnCollisionWithTiles(CollidableGameObject sender, CollidedCell collidedCell) { if(collidedCell.CellType == CellType.Wall) Destroy(); }