예제 #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();
         }
     }
 }
예제 #2
0
파일: Projective.cs 프로젝트: mokujin/DN
 private void OnCollisionWithTiles(CollidableGameObject sender, CollidedCell collidedCell)
 {
     if(collidedCell.CellType == CellType.Wall)
         Destroy();
 }