コード例 #1
0
 private bool TileIsDiggable(LevelTile tile)
 {
     // tile is not opened AND (tile is adjacent to room OR tile is adjacent to highlighted tile)
     return(!tile.Opened &&
            (LevelHelpers.IsTileAdjacentToDigMarkedTile(LevelController.Instance.Model, tile.X, tile.Z) ||
             LevelHelpers.IsTileAdjacentToHell(LevelController.Instance.Model, tile.X, tile.Z)));
 }