예제 #1
0
    /// <summary>[SetInInspector] </summary>
    public void OnRemoveButtonClick()
    {
        if (!(m_currentBuilding is IBuildingProduction))
        {
            Debug.LogWarning("Building is not a production one.");
            return;
        }
        Guid settler = M_BuildingManager.SRemoveSettler(m_currentBuilding.GetId());

        M_SettlersManager.SRemoveWorkplace(settler);
        RefreshUI();
    }