Beispiel #1
0
    public void SetBuilding(QuestBuilding building)
    {
        _questBuilding = building;

        Refresh();
        RefreshSelection();
    }
Beispiel #2
0
    public static UiPopupAssignWorker ShowPopupAssignWorker(QuestBuilding building)
    {
        UiPopupAssignWorker popup = UiLayout.CreatePopup("Ui/PopupAssignWorker") as UiPopupAssignWorker;

        popup.SetBuilding(building);

        popup.OnShowBegin += () => Quest.Instance.SetPause(true);
        popup.OnHideBegin += () => Quest.Instance.SetPause(false);

        return(popup);
    }
Beispiel #3
0
    public string GetJobText()
    {
        QuestBuilding building = Quest.Instance.Status.Buildings.GetBuildingByWorker(this);

        return(building != null ? building.DescriptionJob : "Ничем не занят");
    }
Beispiel #4
0
 public void SetData(QuestBuilding building)
 {
     _building = building;
     _resourcesRequiredToBuild.SetResources(building.Cost.ToArray());
 }