예제 #1
0
 private void OnClickDeemploy()
 {
     UI_ScreenEmploy.SAddEmployee(m_settler);
     gameObject.GetComponent <Image>().color = m_baseColor;
     employButton.gameObject.SetActive(true);
     deemployButton.gameObject.SetActive(false);
 }
예제 #2
0
 private void Start()
 {
     if (s_instance != null)
     {
         Debug.LogWarning("Only one instance is allowed!");
     }
     s_instance = this;
 }
예제 #3
0
 /// <summary>[SetInInspector] </summary>
 public void OnEmployButtonClick()
 {
     if (!(m_currentBuilding is IBuildingProduction))
     {
         Debug.LogWarning("Building is not a production one.");
         return;
     }
     UI_ScreenEmploy.SShowEmployScreen();
 }
예제 #4
0
    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);
    }