コード例 #1
0
    public void SetTile(int x, int y, float height, OrthoDir dir, Tile tile)
    {
        FacingTileKey key = new FacingTileKey();

        key.dir          = dir;
        key.pos          = new Vector3(x, height, y);
        facingTiles[key] = tile;
    }
コード例 #2
0
    public Tile TileAt(int x, int y, float height, OrthoDir dir)
    {
        FacingTileKey key = new FacingTileKey();

        key.dir = dir;
        key.pos = new Vector3(x, height, y);
        if (facingTiles.ContainsKey(key))
        {
            return(facingTiles[key]);
        }
        else
        {
            return(defaultFaceTile);
        }
    }