示例#1
0
    /// <summary>
    /// Gets the platform present on a tile in the map
    /// </summary>
    private Platform GetPlatformInMap(Vector3 pos)
    {
        Lane thisLane = GetActiveLane((int)GetTileCoord(pos).y);

        if (thisLane == null)
        {
            return(null);
        }
        return(thisLane.GetPlatform(pos));
    }