Exemple #1
0
 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();
         }
     }
 }
Exemple #2
0
 private void OnCollisionWithTiles(CollidableGameObject sender, CollidedCell collidedCell)
 {
     if(collidedCell.CellType == CellType.Wall)
         Destroy();
 }