コード例 #1
0
ファイル: TrollBehaviour.cs プロジェクト: mokujin/DN
 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();
 }