void updateAvailableInfo() { InvestigationManager im = InvestigationManager.GetInstance(); List <Investigation> investigations = im.getAvailableInvestigations(); if (investigations.Count == 0) { investigationButton.interactable = false; investigationButtonText.text = Dictionary.getString("ALL_RESEARCHED"); nameText.text = ""; priceText.text = ""; descriptionText.text = ""; } else { Investigation selectedInvest = im.getInvestigation(selectedId); nameText.text = selectedInvest.getName(); priceText.text = " " + Dictionary.getString("COST") + " " + selectedInvest.getCost(); descriptionText.text = selectedInvest.getDesc(); investigationButton.interactable = true; investigationButtonText.text = Dictionary.getString("RESEARCH"); //selectedInvest.printInfo (); } }
void updateAvailableList(bool changeOfTab) { InvestigationManager im = InvestigationManager.GetInstance(); List <Investigation> investigations = im.getAvailableInvestigations(); if (changeOfTab && investigations.Count > 0) { selectedId = investigations[0].getID(); } showInvestigationsList(investigations); }