private void OnClick() { if (state == State.READY) { UI_ScreenBuilding.SShowStats(this); } }
public void OnClickHome() { if (m_settler.GetHouse() != null) { UI_ScreenBuilding.SShowStats(M_BuildingManager.SGetBuilding(m_settler.GetHouse())); } }
void Start() { if (buildingName == null || buildingDesc == null || productiveBuildingContent == null || wareProd == null || foodPerDay == null || researchPerDay == null || workerImage == null || workerName == null || defaultWorkerImg == null || infoButtonProd == null || employButton == null || removeButton == null || houseBuildingContent == null || settlersNumber == null || infoButtonHouse == null) { Debug.LogWarning("Component hasn't been fully initialized!"); } if (s_instance != null) { Debug.LogWarning("There should be only only instance of that component!"); } s_instance = this; }
private void OnEnable() { m_building = UI_ScreenBuilding.GetCurrentBuilding(); /* * inputFood.text = m_building.data.foodPerDay.ToString(); * inputResearch.text = m_building.data.researchPerDay.ToString(); */ }
public void OnEmploy() { UI_ScreenBuilding.AssignWorker(m_employee.GetId()); M_ScreenManager.SChangeScreen(this.gameObject); }