/// <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); }
public void OnClickInfo() { UI_ScreenSettler.SShowSettler(m_settler); }
public void OnClickInfo() { UI_ScreenSettler.SShowSettler(m_settler); M_ScreenManager.SChangeScreenPersistentBack(m_settlerScreen); UI_ScreenRemoveWorker.SSetIfInfoScreen(true); }