public static void EndBurn(int amount)
    {
        Bonfire bonfire = GameObject.Find("Bonfire").GetComponent <Bonfire>();

        bonfire._resource.Amount -= amount;
        ResourceManager.AddRemoveResource(ResourceManager.ResourceType.Fire, 1, MethodHandler.Command.Remove);
        bonfire.UpdateBonfireLevel();
        EventHandler.current.ConsumeFire();
    }
    private void Update()
    {
        if (buildingPrefab)
        {
            buildingPrefab.transform.position = SelectionManager.hoveredTile.transform.position;
            if (Input.GetMouseButtonDown(0) && SelectionManager.hoveredTile.tag == TagHandler.walkGroundString)
            {
                var buildingInfo = new Building();
                buildingInfo.InitializeBuildingInfo(buildingProp);
                if (PlayerResources.current.wood >= buildingInfo.CostWood && PlayerResources.current.stone >= buildingInfo.CostStone)
                {
                    ResourceManager.AddRemoveResource(ResourceManager.ResourceType.Wood, buildingInfo.CostWood, MethodHandler.Command.Remove);
                    ResourceManager.AddRemoveResource(ResourceManager.ResourceType.Stone, buildingInfo.CostStone, MethodHandler.Command.Remove);

                    _map.SetTilePropTo(SelectionManager.hoveredTile.transform, Tile.Property.Construction);
                    var building = SelectionManager.hoveredTile.gameObject.AddComponent <Building>();
                    building.property = buildingProp;
                    // Initialize building info
                    building.InitializeBuildingInfo(building.property);
                    EventHandler.current.BeginBuildingConstruction();

                    GameObject.Destroy(buildingPrefab);
                    buildingPrefab = null;
                }
            }
            if (Input.GetMouseButtonDown(1))
            {
                GameObject.Destroy(buildingPrefab);
                buildingPrefab = null;
            }
            else
            {
                Debug.Log("Can't build here.");
                Talker.TypeThis("Can't build here.");
            }
        }
    }