Ejemplo n.º 1
0
 private void OnClick()
 {
     if (state == State.READY)
     {
         UI_ScreenBuilding.SShowStats(this);
     }
 }
Ejemplo n.º 2
0
 public void OnClickHome()
 {
     if (m_settler.GetHouse() != null)
     {
         UI_ScreenBuilding.SShowStats(M_BuildingManager.SGetBuilding(m_settler.GetHouse()));
     }
 }
Ejemplo n.º 3
0
    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;
    }
Ejemplo n.º 4
0
    private void OnEnable()
    {
        m_building = UI_ScreenBuilding.GetCurrentBuilding();

        /*
         * inputFood.text = m_building.data.foodPerDay.ToString();
         * inputResearch.text = m_building.data.researchPerDay.ToString(); */
    }
Ejemplo n.º 5
0
 public void OnEmploy()
 {
     UI_ScreenBuilding.AssignWorker(m_employee.GetId());
     M_ScreenManager.SChangeScreen(this.gameObject);
 }