public void CreateList() { if (windowOpen) { DispensaryUIPanel dispensaryUIPanel = gameObject.GetComponent <DispensaryUIPanel>(); if (dispensaryUIPanel != null) { dispensaryUIPanel.CreateList(searchBar.GetText()); } StoreObjectUIPanel storeObjectPanel = gameObject.GetComponent <StoreObjectUIPanel>(); if (storeObjectPanel != null) { storeObjectPanel.CreateStoreObjectsList(searchBar.GetText()); } } }
public void Search() { DispensaryUIPanel dispensaryPanel = gameObject.GetComponent <DispensaryUIPanel>(); if (dispensaryPanel != null) { dispensaryPanel.Search(searchBar.GetText()); } CompanyUIPanel companyPanel = gameObject.GetComponent <CompanyUIPanel>(); if (companyPanel != null) { } StoreObjectUIPanel storeObjectPanel = gameObject.GetComponent <StoreObjectUIPanel>(); if (storeObjectPanel != null) { storeObjectPanel.CreateStoreObjectsList(searchBar.GetText()); } }