public async void Show_building_interface() { Building b = transform.parent.transform.parent.GetComponent <Building>(); Gui_main.Close_other_windows(Gui_main.gui_Building_Interface.gameObject); //zamyka wszystkie okna oprócz tego w argumencie Gui_main.gui_Building_Interface.Load_new_data(b); //ładuje nową zawartosc w interface }
void Start() { exit.onClick.AddListener(() => Application.Quit()); reset.onClick.AddListener(() => Game_reset()); add.onClick.AddListener(() => Gui_main.Close_other_windows(Gui_main.gui_select_building.gameObject)); }
public void B_deliever() { Gui_main.Close_other_windows(Gui_main.gui_deliever.gameObject); Gui_main.gui_deliever.Load_data(); }