private void OnClickDeemploy() { UI_ScreenEmploy.SAddEmployee(m_settler); gameObject.GetComponent <Image>().color = m_baseColor; employButton.gameObject.SetActive(true); deemployButton.gameObject.SetActive(false); }
private void Start() { if (s_instance != null) { Debug.LogWarning("Only one instance is allowed!"); } s_instance = this; }
/// <summary>[SetInInspector] </summary> public void OnEmployButtonClick() { if (!(m_currentBuilding is IBuildingProduction)) { Debug.LogWarning("Building is not a production one."); return; } UI_ScreenEmploy.SShowEmployScreen(); }
private void OnClickEmploy() { if (UI_ScreenEmploy.IsMaxEmployees()) { return; } UI_ScreenEmploy.SAddEmployee(m_settler); gameObject.GetComponent <Image>().color = employColor; employButton.gameObject.SetActive(false); deemployButton.gameObject.SetActive(true); }