public void Init(GameModel model)
 {
     Model            = model;
     Background.color = ColorSettings.Colors.UI_Darker;
     ReportButton.SetEnabled(true);
     ReportButton.Button.onClick.AddListener(() => Model.ToggleReport());
     UpdatePanel();
 }
 public void SetSelection(GameModel model, Building b)
 {
     DisplayedBuilding = b;
     Name.text         = b.BuildingName;
     Description.text  = b.BuildingDescription;
     Image.sprite      = b.BuildingIcon;
     RepairButton.SetEnabled(b.CanRepair());
     RepairButton.Button.onClick.RemoveAllListeners();
     RepairButton.Button.onClick.AddListener(() => model.RepairBuilding(DisplayedBuilding));
 }
Exemple #3
0
 public void UpdatePanel()
 {
     BuildRadarButton.SetEnabled(Model.BPC.Radar.CanBuild(Model));
 }
Exemple #4
0
 public void EnableEndDayButton()
 {
     EndDayButton.SetEnabled(true);
     EndDayButton.Text.text = "End Day";
 }
Exemple #5
0
 private void DisableButton()
 {
     OkButton.SetEnabled(false);
 }