Пример #1
0
 public void OpenApartment(ApartmentButton button, bool enablePanel = true)
 {
     infopanel.SetActive(enablePanel);
     infopanel.GetComponent <Animator>().SetTrigger("open");
     selectedApartment = button;
     if (enablePanel)
     {
         Fungus.FungusManager.Instance.EventDispatcher.Raise(new Eventhandler_OpenApartment.Custom_EventHandlerEvent()
         {
             targetButton = selectedApartment
         });
     }
     ;
     UpdateInfoPanel(button, enablePanel);
 }
Пример #2
0
 public void UpdateInfoPanel(ApartmentButton button, bool enablePanel = true)
 {
     if (!button.empty)
     {
         t_aptnr.text = button.data.apartmentNumber;
         t_size.text  = button.data.size;
         t_name.text  = button.data.residents[0];
         t_dob.text   = button.data.dobs[0];
     }
     else
     {
         t_aptnr.text = button.emptyData.apartmentNumber;
         t_size.text  = button.emptyData.size;
         t_name.text  = button.emptyData.residents[0];
         t_dob.text   = button.emptyData.dobs[0];
     }
     t_notes.text     = button.updatednotes;
     t_energyUse.text = button.updatedEnergyUse;
 }