Nez.Portable/ECS/Components/Physics/TiledMapMover.cs
/// <summary>
/// Checks whether collision is occurring with a slope on a given row.
/// </summary>
/// <returns>Whether collision is occurring with a slope on a given row</returns>
/// <param name="rowY">the row to check</param>
Checks whether collision is occurring with a slope on a given row.
Checks whether collision is occurring with a slope on a given row .
bool isSlopeCollisionRow(int rowY)
        {
            for (var i = 0; i < _collidingTiles.Count; i++)
            {
                if (_collidingTiles[i] != null && _collidingTiles[i].isSlope() && _collidingTiles[i].y == rowY)
                    return true;
            }
            return false;
        }
bool isSlopeCollisionRow ( int rowY ) { for ( var i = 0 ; i < _collidingTiles . Count ; i ++ ) { if ( _collidingTiles [ i ] != null && _collidingTiles [ i ] . isSlope ( ) && _collidingTiles [ i ] . y == rowY ) return true ; } return false ; }
Checks whether collision is occurring with a slope on a given row.
Checks whether collision is occurring with a slope on a given row .
Whether collision is occurring with a slope on a given row
Whether collision is occurring with a slope on a given row
rowY
int
the row to check
the row to check