Exemplo n.º 1
0
    /// <summary>[SetInInspector] On info button click event </summary>
    public void OnProductionInfoButtonClick()
    {
        if (!(m_currentBuilding is IBuildingProduction))
        {
            Debug.LogWarning("Building is not a production one.");
            return;
        }
        Guid settler = ((IBuildingProduction)m_currentBuilding).GetWorker();

        if (settler == Guid.Empty)
        {
            Debug.LogWarning("Production Building doesn't have a worker.");
            return;
        }
        UI_ScreenSettler.SShowSettler(settler);
    }
Exemplo n.º 2
0
 public void OnClickInfo()
 {
     UI_ScreenSettler.SShowSettler(m_settler);
 }
Exemplo n.º 3
0
 public void OnClickInfo()
 {
     UI_ScreenSettler.SShowSettler(m_settler);
     M_ScreenManager.SChangeScreenPersistentBack(m_settlerScreen);
     UI_ScreenRemoveWorker.SSetIfInfoScreen(true);
 }