コード例 #1
0
    public bool CreateRoom(HexCoordinate location)
    {
        //Check if we can make a room here first
        if (!CanCreateRoom(location))
        {
            //Break out if we cannot
            return(false);
        }

        BoardTile newTile = GameManager._instance.CreateRoomTilePrefab();

        newTile.gameObject.transform.position = HexCoordinate.GetWorldPositionFromHex(location);


        _map.Add(location, newTile);

        return(true);
    }