public void SetInfo(Country_SO country) { m_NameText.text = country.GetName(); m_AreaText.text = country.GetArea().ToString(); m_GDPText.text = country.GetGDP().ToString(); m_PopulationText.text = country.GetPopulation().ToString(); }
public void Open(Country_SO country) { m_AreaText.text = "Площадь: " + country.GetArea(); m_GRPText.text = "ВВП: " + country.GetGDP(); m_PopulationText.text = "Население: " + country.GetPopulation(); base.Open(); }
// Start is called before the first frame update public void Init(SceneManager sceneManager) { _SceneManager = sceneManager; _Country = new Country_SO(m_SlugName); _Model = _Country.LoadModel(); _ModelGO = Instantiate(_Model, transform); _ModelGO.SetActive(false); _Mark = GetComponentInChildren <MarkLookAtCamera>(); _Mark.OnMarkClicked += MarkClicked; _Mark.OnMarkMouseDown += StartWaitSelect; _Mark.OnMarkMouseUp += StopWaitSelect; m_SelectedNameCountry.gameObject.SetActive(false); m_SelectedNameCountry.text = _Country.GetName(); Selected = false; }
int ComparePopulation(Country_SO country) { return(country.GetPopulation()); }
int CompareGDP(Country_SO country) { return(country.GetGDP()); }
int CompareArea(Country_SO country) { return(country.GetArea()); }
internal void RemoveCountry(Country_SO country) { countrySelectedList.Remove(country); UpdateUI(); }
internal void AddCountry(Country_SO country) { countrySelectedList.Add(country); UpdateUI(); }
void ShowCountyInfo(Country_SO country) { _CountryInfo.Open(country); }