OurSonic.SonicManager.containsAnimatedTile C# (CSharp) Method

containsAnimatedTile() private method

private containsAnimatedTile ( int tile, SonicLevel sonLevel ) : TileAnimationData
tile int
sonLevel OurSonic.Level.SonicLevel
return OurSonic.Level.Animations.TileAnimationData
        private TileAnimationData containsAnimatedTile(int tile, SonicLevel sonLevel)
        {
            foreach (var an in sonLevel.TileAnimations)
            {
                var anin = an.AnimationTileIndex;
                var num = an.NumberOfTiles;
                if (tile >= anin && tile < anin + num)
                    return an;
            }
            return null;
        }