RoomManager.checkForBlock C# (CSharp) Method

checkForBlock() public method

public checkForBlock ( Vector3 tile ) : bool
tile Vector3
return bool
    public bool checkForBlock(Vector3 tile)
    {
        int x = (int) Mathf.Floor(tile.x);
        int y = (int) Mathf.Floor(tile.y);
        //print ("X: " + x + "|Y: " + y);
        Tile currentTile = this.tileMap [x, y];

        return currentTile.blocking;
    }